Hooks
01
Understanding useEffect: Each Render Has Its Own Props, State, and Effects
reacthooks
A mental model for useEffect: moving past the lifecycle (mount/update/unmount) mindset to thinking about effects as a way to synchronize side effects with React state and props.
02
useReducer: A Mental Model for Decoupling Actions from State Updates
reacthooks
When to reach for useReducer over useState, and why. The Dan Abramov framing: dispatch tells the reducer what happened, the reducer decides how state changes - so the component never needs to know the update logic.