A reducer that returns the next state, given the current state and an action to handle.
It is not recommended to implement this interface directly. Use the Reducer() function to create a Reducer.
Reducer()
An initial state.
Returns the next state, given the current state and an action to handle.