what are the 2 params passed to a reducer? — the state and the action.
you need to initialize the state, for example:
function todos(state=[ ], action)
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.