redux-devtools
redux-devtools copied to clipboard
1.1 BASIC STORE
createStore is actually deprecated

I think you try import { legacy_createStore as createStore } from 'redux'
Wouldn't using
createStorenot be recommended since it's no longer supported by redux?
Wouldn't using createStore not be recommended since it's no longer supported by redux?
Yeah, the ideal answer here is "just use Redux Toolkit's configureStore API that does this for you automatically":
const store = configureStore({
reducer: {
counter: counterReducer
}
})
// automatically added the Redux DevTools configuration
The example at https://github.com/reduxjs/redux-devtools/tree/main/extension#installation is still valid code, just not how we'd prefer that people set up and use Redux:
- https://redux.js.org/introduction/why-rtk-is-redux-today
So, the documentation here probably could/should be updated to be more clear.