Stolen directly from the redux repo
This repo already has redux - you'll use it as a baseline, and integrate all of the nice redux toolkit
features into it.
- Fork and clone this repo
cd
to cloned directorynpm install
npm start
to start the server
Integrate redux toolkit features into this project. Feel free to change as many things as you want, but keep all the functionality intact - you should still be able to add, complete, and filter the todos.
Try to answer these questions while doing it:
- Where is the store located? How would you rewrite it?
- Can you rewrite the actions with
createAction()
? Or is there a better way? - There is a strange syntax that you may have never seen before on some the component exports. This is the
connect
syntax, it can be replaced withuseDispatch
anduseSelector
hooks. The associatedmapStateToProps
andmapDispatchToProps
can also be thrown out. - There are propTypes on some of the components - you can leave them alone or delete them, up to you.
- How does
combineReducers
get replaced with RTK features?
When finished, commit and push your work and make a pull request against this repo.