filmov
tv
Exercises: Custom Hooks - React In Depth

Показать описание
Let's go through some exercises to practice Custom Hooks in React together.
We start with a warmup to create a hook that will log when a component mounts and re-renders in a re-usable way.
In the first main exercise we see what a custom hook would look like that checks to see if a user might be authenticated in an application and how that might be shared with other components in the component hierarchy.
For the second exercise, we create a hook that wraps around useState that logs the previous and next state values as state changes.
To wrap up the video, we look at how we can create our own data fetching hook that implements caching inside it.
Chapters:
00:00 Introduction
00:35 Warmup Exercise - Rerender Logger
11:06 Exercise 1 - useAuth Hook
22:12 Exercise 2 - useState with Logging
38:39 Exercise 3 - useQuery Data Fetching
1:13:51 Next Steps
We start with a warmup to create a hook that will log when a component mounts and re-renders in a re-usable way.
In the first main exercise we see what a custom hook would look like that checks to see if a user might be authenticated in an application and how that might be shared with other components in the component hierarchy.
For the second exercise, we create a hook that wraps around useState that logs the previous and next state values as state changes.
To wrap up the video, we look at how we can create our own data fetching hook that implements caching inside it.
Chapters:
00:00 Introduction
00:35 Warmup Exercise - Rerender Logger
11:06 Exercise 1 - useAuth Hook
22:12 Exercise 2 - useState with Logging
38:39 Exercise 3 - useQuery Data Fetching
1:13:51 Next Steps
Exercises: Custom Hooks - React In Depth
Custom Hooks - React In Depth
Learn how to create Custom Hooks in React in 24 minutes (+ useRef Tutorial for beginners)
React Custom Hooks: useLocalStorage - Simply Explained!
ReactJS Course [12] - Custom Hooks Tutorial
ReactiveConf 2019 - David Kimr: React Custom Hooks
Free Webinar - How to Use Custom Hooks in React
Custom Hooks | React Design Pattern - 5
Custom Hooks in React
Custom Hooks in React: The Ultimate UI Abstraction Layer - Tanner Linsley | JSConf Hawaii 2020
Writing a Custom Hook: useEventListener
Learn React Hooks: useEffect - Simply Explained!
React Bits #4 | React Hooks - Custom Hooks
Create Your First Custom Hooks- React Tutorial
Dad Knocked Out His Son?🤯
React Hooks Course - All React Hooks Explained
Learn React Hooks: useRef - Simply Explained!
Learn React Hooks: useCallback - Simply Explained!
React Hooks Best Practices
How to build elegant React forms with React Hook Form
useContext In 2 Minutes - the React Hooks series
Nesting 'If Statements' Is Bad. Do This Instead.
React Custom Hooks - 1 - Kendi Hookunu Oluştur - useToggle Örneği
What happened when I fall #surf #surfing #athlete #waves #surfers #skate #wsl #fit
Комментарии