2018-12-01 19:22:26 +05:30
|
|
|
import { createStore, applyMiddleware } from 'redux';
|
|
|
|
import thunk from 'redux-thunk';
|
|
|
|
import rootReducer from '../reducers';
|
|
|
|
|
|
|
|
// Add initial state here
|
|
|
|
const initialState = {
|
|
|
|
'home': {
|
2018-12-01 21:40:41 +05:30
|
|
|
'test': 'foo',
|
|
|
|
'loading': false,
|
|
|
|
'videos': []
|
2018-12-01 19:22:26 +05:30
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
const store = createStore(
|
|
|
|
rootReducer,
|
|
|
|
initialState,
|
|
|
|
applyMiddleware(thunk)
|
|
|
|
);
|
|
|
|
|
|
|
|
export default store;
|
|
|
|
|
|
|
|
|
|
|
|
|