Hook Scaffold
Create a reusable hook with strict typing and tests.
When to Use
- •Use this skill when extracting reusable logic.
Inputs
- •Hook name (useX)
- •Parameters and return shape
- •Side effects or dependencies
Instructions
- •Create the hook file and export a typed API.
- •Add inline documentation for usage and constraints.
- •Write tests with
renderHookfor key scenarios.
Output
- •Hook implementation and tests.