//用于创建store
import {applyMiddleware, legacy_createStore as createStore} from "redux"
import allReducer from "./reducers"//将多个reducer合并为一个
import thunk from "redux-thunk"  //引入异步模块
import {composeWithDevTools} from "redux-devtools-extension"

export default createStore(allReducer, composeWithDevTools(applyMiddleware(thunk)))//创建并导出store对象
