filmov
tv
Custom Hooks - React In Depth
![preview_player](https://i.ytimg.com/vi/GqkSgrIEyyg/maxresdefault.jpg)
Показать описание
Let's learn about Custom Hooks in React together.
We start with an overview of what a custom hook is and why we would use one and look at them in the context of the React Component Lifecycle.
Then, we look at an example of a custom hook that uses a single useEffect to log a message when a component mounts and how we can re-use it.
We then create a more complex hook by also brining in useState along with useEffect to create a useTimer hook that we can re-use across components. We also see how each component gets its own independent state and lifecycle.
To wrap up the video we recap the main ideas behind custom hooks, where and why to use them and some places we might see them in the wild.
Chapters:
00:00 Introduction
01:14 Custom Hooks Overview
03:01 React Component Lifecycle
04:07 useEffect Custom Hooks Example
09:33 logOnMount Hook Code Example
15:57 Starting Hooks with "use"
17:51 useTimer Custom Hook Example
20:55 useTimer Custom Hook Code
28:18 Custom Hook Visualization
29:47 Independent States Across Hooks
33:10 Recap
35:13 Next Steps
We start with an overview of what a custom hook is and why we would use one and look at them in the context of the React Component Lifecycle.
Then, we look at an example of a custom hook that uses a single useEffect to log a message when a component mounts and how we can re-use it.
We then create a more complex hook by also brining in useState along with useEffect to create a useTimer hook that we can re-use across components. We also see how each component gets its own independent state and lifecycle.
To wrap up the video we recap the main ideas behind custom hooks, where and why to use them and some places we might see them in the wild.
Chapters:
00:00 Introduction
01:14 Custom Hooks Overview
03:01 React Component Lifecycle
04:07 useEffect Custom Hooks Example
09:33 logOnMount Hook Code Example
15:57 Starting Hooks with "use"
17:51 useTimer Custom Hook Example
20:55 useTimer Custom Hook Code
28:18 Custom Hook Visualization
29:47 Independent States Across Hooks
33:10 Recap
35:13 Next Steps
Learn Custom Hooks In 10 Minutes
Full React Tutorial #20 - Making a Custom Hook
Custom Hooks in React (Design Patterns)
React Hooks Tutorial - 30 - Custom Hooks
Custom Hooks in React - Every React Developer Should Know This
Learn how to create Custom Hooks in React in 24 minutes (+ useRef Tutorial for beginners)
React Custom Hooks: useLocalStorage - Simply Explained!
Custom Hooks in ReactJS 🥳 - Best Code Example
ShadCN React Hook Form Tutorial 2024 (Zod + ShadCN + Mui)- 4
How you can use custom hooks to abstract your react code
10 React Hooks Explained // Plus Build your own from Scratch
5 Custom React Hooks You Need In Every Project
Custom Hooks React | React Hooks Tutorial
ReactJS Course [12] - Custom Hooks Tutorial
Why I Don’t Use useEffect In My React Components
React Custom Hooks | Learn Custom Hooks & Build a Project
React Custom Hooks with Axios Async useEffect | React Tutorials for Beginners
Custom hooks in react | currency Project
All React Hooks Tutorial + Building a Custom Hook in React JS
How to write custom hooks in React JS 🔥
React Custom Hooks: useDebounce - Simply Explained!
Custom hooks in react | currency Project
Custom Hooks - React In Depth
Build your own Custom Hooks in React | React Custom Hooks
Комментарии