redux中redux-devtools的使用
2020-02-26 本文已影响0人
sweetBoy_9126
import { createStore, compose } from 'redux'
const composeEnhancers = (window as any).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(reducer, composeEnhancers())