reducer

A pure function that takes the current state and an action and returns the next state.

In more detail

Reducers must not start timers, make network calls or change their inputs; they only calculate. Because all transitions live in one place, a reducer is easy to test and to read as a list of what can happen.

Related terms

Taught in

References