What is the best mental model for a reducer function?
A lifecycle callback that runs after rendering
A pure state transition function that maps (state, action) → nextState
A background task scheduler for async operations
A replacement for component rendering