Redux-DevTools安装

去谷歌应用商店搜索Redux-DevTools,安装就行

高级使用方法:访问https://github.com/zalmoxisus/redux-devtools-extension

import {createStore,compose} from "redux"
import reducer from "./reducer"

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
const store = createStore(reducer,composeEnhancers())
export default store

相关推荐