useEffect Over Lunch
Buy now
Learn more
What is a side effect, and why do we need useEffect?
Fetching Data (and avoiding infinite loops)
Re-fetch data when a prop changes
Create a custom hook for fetching data
Refactor lifecycle methods to useEffect
Websockets, extra dependencies, and the functional fix
useEffect vs useLayoutEffect, and when to use each
Fix infinite loops when the warnings are misleading
Bonus Content
A Guided Tour of React Hooks
useEffect Printable Cheatsheet
Products
Course
Section
Lesson
What is a side effect, and why do we need useEffect?
What is a side effect, and why do we need useEffect?
useEffect Over Lunch
Buy now
Learn more
What is a side effect, and why do we need useEffect?
Fetching Data (and avoiding infinite loops)
Re-fetch data when a prop changes
Create a custom hook for fetching data
Refactor lifecycle methods to useEffect
Websockets, extra dependencies, and the functional fix
useEffect vs useLayoutEffect, and when to use each
Fix infinite loops when the warnings are misleading
Bonus Content
A Guided Tour of React Hooks
useEffect Printable Cheatsheet
What exactly is a "side effect" and why do we need useEffect at all? I'll answer these questions and show a few use cases for useEffect.