🧒 Explain like I'm 5
Imagine `useEffect` as a sticky note you leave for yourself on the front door: 'When I get home, do X.' The component renders (you arrive home), and then React reads your sticky note and performs the effect. If you have a cleanup step, it's another note: 'Before you leave again, undo X first.' The dependency array is the condition on the note: 'only do this if certain things changed since last time.'
Interactive quiz
Check your understanding with an instant-feedback quick check.
Detailed notes
Senior-level deep dive: internals, pitfalls, and a self-interview ladder.
Practice with AI feedback
Answer out loud, get scored on correctness, depth, and clarity.