Default State Reducer

๐Ÿ‘จโ€๐Ÿ’ผ Our toggleReducer is pretty simple, so it's not a huge pain for people to implement their own. However, in a more realistic scenario, people may struggle with having to basically re-implement our entire reducer which could be pretty complex.
So for the this step, we're going to export the default reducer so people can use that inside their own reducers as needed.
Go ahead and do this by changing the toggleStateReducer function inside the <App /> example to use the default reducer instead of having to re-implement what to do when the action type is 'reset'.
Login to get access to the exclusive discord channel.
  • General
    Welcome to EpicReact.dev! Say Hello ๐Ÿ‘‹
    Kent C. Dodds โ—† ๐Ÿš€๐Ÿ†๐ŸŒŒ:
    Welcome to the first of many posts in the EpicReact.dev channel! Take a moment to introduce yourself...
    0 ยท 4 days ago