redux-devtools的使用

在项目的入口文件里 找到 createStore函数调用的地方,给它加第二个参数 window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()

const store = createStore(
  reducers,
  window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
);

https://www.cnblogs.com/zhuzhenwei918/p/7249357.html

https://github.com/zalmoxisus/redux-devtools-extension#usage

posted @ 2019-09-28 06:55  AnswerCard  阅读(1180)  评论(0编辑  收藏  举报