1. 크롬 웹스토어에서 REDUX DEVTOOLS 다운로드하고
2. createStore마지막 인자로 ,(콤마) 하고 +부분 넣어주면 됨.
const store = createStore(
reducer, /* preloadedState, */
+ window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);
<관련 깃헙>
https://github.com/zalmoxisus/redux-devtools-extension#installation
'frontend > 상태관리' 카테고리의 다른 글
Redux와 상태관리 복습. (0) | 2021.06.01 |
---|