6 min read
•Question 14 of 48mediumCustom Hooks
Creating reusable stateful logic.
What are Custom Hooks?
Custom Hooks let you extract component logic into reusable functions. They start with "use" and can call other Hooks.
Why Custom Hooks?
- Share logic between components
- Keep components clean
- Separate concerns
- Test logic independently