import { createStore, compose, combineReducers, applyMiddleware } from 'redux'
import promise from 'redux-promise'
import thunk from 'redux-thunk'
import homeReduce from './reducer/home'
const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose
const store = createStore(
combineReducers({
homeReduce,
}),
composeEnhancers(applyMiddleware(promise, thunk))
)
export { store }
store.js
最新推荐文章于 2024-08-13 08:18:36 发布