diff --git a/src/index.js b/src/index.js index 1aba72e..492dd6a 100644 --- a/src/index.js +++ b/src/index.js @@ -5,7 +5,10 @@ import App from "./App"; import { createStore } from "redux"; import allReducers from "./reducers"; // store -const store = createStore(allReducers); +const store = createStore( + allReducers, + window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() +); const root = ReactDOM.createRoot(document.getElementById("root")); root.render(