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

猜你喜欢

转载自www.cnblogs.com/answercard/p/11601310.html