State, Events & Component Composition
1. Fundamentals
1. FUNDAMENTALS
State, Events & Component Composition
Local state with useState, handling events, lifting state to the right component, and composing UIs instead of configuring them with a dozen props.
4 resources 0 labs
Exact semantics: batching, updater functions, lazy initialisation and the traps around objects and arrays in state.
TEXTENFREE 20 min4.5 (72)
The official chapter on state structure: reacting to input, choosing between state and props, preserving/resetting state and lifting it up.
TEXTENFREE 40 min4.4 (66)
Hindi explanation of what problem hooks solve, how state drives the UI, and building a small interactive demo from scratch.
VIDEOHIFREE 28 min4.2 (58)
State, re-renders and the updater form, plus the classic stale-state bug caused by reading state right after setting it.
VIDEOENFREE 16 min4.2 (62)