Skip to content

Instantly share code, notes, and snippets.

@wowremywang
Last active January 14, 2021 08:25
Show Gist options
  • Save wowremywang/502e19512ed5b1745ca29378285fdc55 to your computer and use it in GitHub Desktop.
Save wowremywang/502e19512ed5b1745ca29378285fdc55 to your computer and use it in GitHub Desktop.
Enable Redux Dev Tools
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