21 lines
326 B
JavaScript
21 lines
326 B
JavaScript
import { createStore, applyMiddleware } from 'redux';
|
|
import thunk from 'redux-thunk';
|
|
import rootReducer from '../reducers';
|
|
|
|
// Add initial state here
|
|
const initialState = {
|
|
'home': {
|
|
'test': 'foo'
|
|
}
|
|
};
|
|
|
|
const store = createStore(
|
|
rootReducer,
|
|
initialState,
|
|
applyMiddleware(thunk)
|
|
);
|
|
|
|
export default store;
|
|
|
|
|
|
|