Master the useEffect Hook: Real World Examples Included

preview_player
Показать описание
The useEffect hook in React is a built-in hook that lets you sync your component with an external system or perform some setup or cleanup actions when the component renders or unmounts. The useEffect hook accepts two arguments: the first is a function that contains your logic and the second is a dependency array that determines when to re-run the effect.

Chapters
0:00-01:13 Intro
01:13-02:16 Component Lifecycle
02:16-03:06 UseEffect Structure
03:06-04:27 Fetching Data
04:27-07:48 Subscriptions
07:48-10:35 Side Effects
10:35-12:19 Trigger Re-rerenders
12:19-12:46 Performance Optimization
12:46-13:52 Conclusion

Рекомендации по теме