API Reference | Redux (original) (raw)
The original Redux core createStore
method is deprecated!
createStore
will continue to work indefinitely, but we discourage direct use of createStore
or the original redux
package.
Instead, you should use the configureStore method from our official Redux Toolkit package, which wraps createStore
to provide a better default setup and configuration approach. You should also use Redux Toolkit's createSlice method for writing reducer logic.
Redux Toolkit also re-exports all of the other APIs included in the redux
package as well.
See the Migrating to Modern Redux page for details on how to update your existing legacy Redux codebase to use Redux Toolkit.