Side Effects with useEffect
Synchronise a component with the outside world: how effects run, what the dependency array really means, why cleanup matters, and when not to use an effect at all.
Go deeper into React with effects, refs, context, reducers, custom hooks and the composition patterns real applications are built from.
Synchronise a component with the outside world: how effects run, what the dependency array really means, why cleanup matters, and when not to use an effect at all.
Hold values that survive renders without causing them, reach into DOM nodes when you must, and forward refs through your own components.
Stop threading props through layers that do not need them. Create a context, provide a value, consume it with useContext, and avoid the performance traps.
Move tangled state transitions into one reducer function, design clear actions, and know when a reducer beats several useState calls or a state library.
Extract stateful logic into functions you can reuse, learn the rules that make a function a hook, and build the handful of hooks every project ends up needing.
The patterns experienced React developers reach for: composition, compound components, render props, higher order components, and the APIs that support them.