reducer method

S reducer(
  1. S state,
  2. Action action
)

Implementation

S reducer(S state, Action action) => state;