React开发者工具调试(facebook)

image.png

redux 开发工具

store中进行配置

  1. const store = createStore(
  2. reducer,
  3. + window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
  4. );

react-redux开发者工具的使用

  1. (1).npm install redux-devtools-extension
  2. (2).store中进行配置
  3. import {composeWithDevTools} from 'redux-devtools-extension'
  4. const store = createStore(allReducer,composeWithDevTools(applyMiddleware(thunk)))