2018-06-01 14:25:59 +00:00
|
|
|
import { createStore, applyMiddleware } from 'redux';
|
|
|
|
import rootReducer from '../reducers/rootReducer';
|
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
|
2018-06-01 16:45:11 +00:00
|
|
|
const store = createStore(
|
|
|
|
rootReducer,
|
|
|
|
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__(),
|
|
|
|
applyMiddleware(thunk)
|
|
|
|
);
|
|
|
|
|
|
|
|
export default store;
|