Last active
January 14, 2021 08:25
-
-
Save wowremywang/502e19512ed5b1745ca29378285fdc55 to your computer and use it in GitHub Desktop.
Enable Redux Dev Tools
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { createStore, applyMiddleware, compose } from "redux"; | |
import rootReducer from "../reducers/index"; | |
import { forbiddenWordsMiddleware } from "../middleware"; | |
const storeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; | |
const store = createStore( | |
rootReducer, | |
storeEnhancers(applyMiddleware(forbiddenWordsMiddleware)) | |
); | |
export default store; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment