11 lines
360 B
JavaScript
11 lines
360 B
JavaScript
import { createStore, applyMiddleware } from 'redux'
|
|
import rootReducer from '../reducers'
|
|
import thunkMiddleware from 'redux-thunk'
|
|
|
|
export default function configureStore(initialState) {
|
|
const store = createStore(rootReducer,
|
|
applyMiddleware(thunkMiddleware),
|
|
initialState)
|
|
return store
|
|
}
|
|
|