Reducers as Pure State Transitions
A reducer is a pure function `(state, action) => newState`: no mutation, no I/O, no randomness, same output for same inputs. Purity is what makes Redux state reproducible — replaying the same action sequence always yields the same state.
This Concept is waiting for its first lesson!
A reducer is a pure function `(state, action) => newState`: no mutation, no I/O, no randomness, same output for same inputs. Purity is what makes Redux state reproducible — replaying the same action sequence always yields the same state.
Are you a teacher? Sign in to start contributing.
Sign In