useEffect Over Lunch by Dave Ceddia

useEffect Over Lunch

What's included?

Video Icon 9 videos File Icon 1 file


What is a side effect, and why do we need useEffect?
2 mins
Fetching Data (and avoiding infinite loops)
8 mins
Re-fetch data when a prop changes
8 mins
Create a custom hook for fetching data
8 mins
Refactor lifecycle methods to useEffect
11 mins
Websockets, extra dependencies, and the functional fix
11 mins
useEffect vs useLayoutEffect, and when to use each
3 mins
Fix infinite loops when the warnings are misleading
10 mins
Bonus Content
A Guided Tour of React Hooks
36 mins
useEffect Printable Cheatsheet
72.8 KB