Video: Custom Toggle Hook
Custom React Hooks
Released:
-
1. Getting Started
4M20S
-
2. A Basic Toggle Hook
7M12S
-
3. Custom Toggle Hook
10M24S
-
4. Return Types
6M4S
-
5. Inc and Deinc Hook
5M22S
-
6. Custom useInc
6M33S
-
7. Full Featured Custom Hooks
10M16S
-
8. Use Mount and Unmount
11M25S
-
9. Binding Events with UseHover
11M33S
-
10. Indexing Our Hooks
3M55S
-
11. React Context & Custom Hooks
12M29S
-
12. Custom Hooks for Context Providers
6M8S
-
13. Live Cookies
18M59S
-
14. Dom Manipulation with useScrollFreeze
10M6S
-
15. useWindowWidth and Dom Events
7M36S
-
16. Refs and ResizeObserver with useMeasure
10M4S
-
17. Load Scripts with useScript
16M7S
-
18. useLocalStorage
10M45S
-
19. Combine Hooks for Theme System
12M8S
-
20. Babel Module Resolver
7M46S
-
21. Where To Go From Here
2M14S
Custom Toggle Hook
Now that we have our basic toggle created, we will learn to update the toggle functionality to create our first custom hook. This will clean up our code and give us reusable functionality that we can use all over our app.