2016-08-31 14:15:12 +00:00
|
|
|
import { createStore, applyMiddleware, compose } from 'redux';
|
2016-08-25 17:52:55 +00:00
|
|
|
import thunk from 'redux-thunk';
|
2016-08-24 15:56:44 +00:00
|
|
|
import appReducer from '../reducers';
|
|
|
|
|
2016-08-31 14:15:12 +00:00
|
|
|
export default function configureStore(initialState) {
|
|
|
|
return createStore(appReducer, initialState, compose(applyMiddleware(thunk), window.devToolsExtension ? window.devToolsExtension() : f => f));
|
2016-08-24 15:56:44 +00:00
|
|
|
}
|