redux-devtools的使用

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

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

http://www.javashuo.com/article/p-zenfovym-kp.htmlgit

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

相关文章
相关标签/搜索