Custom hooks and sharing logic between components
Custom hooks let you extract reusable stateful logic without changing the component tree structure.
- Custom hooks are functions that use hooks
- They share logic, not rendered UI
- Naming them with `use` signals hook behavior
Custom hooks and sharing logic between components