2018-12-01 19:22:26 +05:30
|
|
|
import { createStore, applyMiddleware } from 'redux';
|
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers';
|
2018-12-07 18:59:16 +02:00
|
|
|
import getInitialState from '../utils/get-initial-state';
|
2018-12-01 19:22:26 +05:30
|
|
|
|
2018-12-07 18:59:16 +02:00
|
|
|
const initialState = getInitialState();
|
2018-12-01 19:22:26 +05:30
|
|
|
|
|
|
|
const store = createStore(
|
|
|
|
rootReducer,
|
|
|
|
initialState,
|
|
|
|
applyMiddleware(thunk)
|
|
|
|
);
|
|
|
|
|
|
|
|
export default store;
|
|
|
|
|
|
|
|
|
|
|
|
|