Skip to content
This repository has been archived by the owner on Sep 8, 2021. It is now read-only.

Use the Redux Toolkit library throughout the app #148

Open
roryokane opened this issue Feb 2, 2020 · 0 comments
Open

Use the Redux Toolkit library throughout the app #148

roryokane opened this issue Feb 2, 2020 · 0 comments

Comments

@roryokane
Copy link

Idea

Redux Toolkit is a library by the Redux team that is described within the official Redux docs:

Redux Toolkit is our official, opinionated, batteries-included toolset for efficient Redux development. It is intended to be the standard way to write Redux logic, and we strongly recommend that you use it.

Since Redux Toolkit is recommended so strongly, and it guides the user to use Redux in an idiomatic way, this React + Redux example app should use Redux Toolkit as well.

How to implement

One example of a change to use Redux Toolkit: src/store.js should replace its use of Redux’s createStore a call to Redux Toolkit’s configureStore. This will make calling composeWithDevTools in that file unnecessary, as configureStore does that automatically.

Redux Toolkit’s Advanced Tutorial provides guidance on migrating an existing Redux application to use Redux Toolkit.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant