Skip to content

Commit

Permalink
Redux dev Toolsプラグインをインストールしよう
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yoshiii committed Aug 29, 2022
1 parent 343602f commit c931c3e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.js
Expand Up @@ -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(
Expand Down

0 comments on commit c931c3e

Please sign in to comment.