What does useEffect do?
useEffect and Side Effects
Audio flashcard · 0:12Nortren·
What does useEffect do?
0:12
useEffect is a hook that lets you run side effects in functional components, such as data fetching, subscriptions, or manually changing the DOM. It runs after the component renders and can optionally clean up when the component unmounts.