Tag: hooks
Browse 3 practical software engineering resources tagged with "hooks". Discover code recipes, design patterns, documentation templates, and in-depth guides to help you build, deploy, and maintain production-ready solutions involving hooks. Each resource is written for engineers who ship real systems, with copy-paste examples and practical trade-offs.
Git Hooks
Git hooks are scripts that run at specific points in the Git lifecycle. They help enforce standards, run tests, and automate tasks before commits and pushes.
The resources below cover pre-commit, pre-push, commit-msg hooks, and tools like Husky. Each guide helps you automate Git workflows.
Every resource includes clear explanations, copy-paste code, and practical warnings. Use them to make informed decisions, avoid production pitfalls, and speed up your delivery. If you are just getting started, read the beginner-friendly articles first; if you are experienced, jump straight to the advanced patterns and architecture guides. New resources are added regularly, so bookmark this page and check back for the latest patterns.
When to Use useMemo and useCallback
How and when to use React's useMemo and useCallback hooks for performance optimization, and when...
Custom Hook Composition
How to compose reusable logic with custom React hooks. Covers hook composition patterns, dependency...
Vitest for React: Component, Hook, and Integration Testing
Master Vitest for React testing: component tests with Testing Library, hook tests with renderHook,...