What's the purpose of a reducer? — It's a PURE function that ties state and actions together.
it takes the previous state and an action,
it returns tje next state.
We use cookies to understand our websites traffic and offer our website visitors personalized experience. To find out more, click ‘More Information’. In addition, please, read our
Privacy policy.