DevPath · Learn to code ESPTEN

Frontend with React

🔄 useEffect, useRef and effects

Side effects with useEffect (deps and cleanup), the data-fetching pattern, and useRef for the DOM and mutable values.

What you'll learn

Lessons

useEffect: side effectsSynchronizing the component with the outside world. Fetching data with useEffectThe loading / error / data pattern. useRef: DOM and mutable valuesA box that persists without re-rendering.
Practice this module in the app

DevPath is a hands-on course: you read the theory here; in the app you put it into practice with exercises that really run, offline.

Start free in the app →