

Reduxjs toolkit configurestore code#
Overall, whether you're a brand new Redux user setting up your first project, or an experienced user who wants to simplify an existing application, using Redux Toolkit will make your code better and more maintainable. If you prefer to use a different approach, go ahead!

There are many existing applications that use other Redux wrapper libraries, or write all Redux logic "by hand". Note that you are not required to use Redux Toolkit to use Redux. It can be added at the start of a new project, or used as part of an incremental migration in an existing project. Redux Toolkit is beneficial to all Redux users regardless of skill level or experience. Redux Toolkit makes it easier to write good Redux applications and speeds up development, by baking in our recommended best practices, providing good default behaviors, catching mistakes, and allowing you to write simpler code. We can't solve every use case, but in the spirit of create-react-app and apollo-boost, we can provide an official recommended set of tools that handle the most common use cases and reduce the need to make extra decisions.

It lets you decide how you want to handle everything, like store setup, what your state contains, and how you want to build your reducers. The Redux core library is deliberately unopinionated.
