Custom Hooks
Custom hooks let you move logic that uses state and effects into reusable functions whose names start with use. Build useToggle, useWindowWidth and useCounter, learn the rules, and see a useLocalStorage hook for real projects.
Lesson 20 of 28