📅  最后修改于: 2022-03-11 14:49:39.137000             🧑  作者: Mango
import { applyMiddleware, createStore } from 'redux'; // Logger with default optionsimport logger from 'redux-logger'const store = createStore( reducer, applyMiddleware(logger)) // Note passing middleware as the third argument requires redux@>=3.1.0