Reducer
The Reducer determines what happens in response to an Action:
It's the logic unit of the Store. It receives the current State and an incoming Action, and returns a Reduction containing the new state and any Reactions.
The reducer is run atomically by the Store, ensuring thread-safe state updates.