client/src/store/configureStore.js
author Alexandre Segura <mex.zktk@gmail.com>
Tue, 23 May 2017 16:58:15 +0200
changeset 6 540161f63238
parent 3 3b5d37d84cfe
child 12 48ddaa42b810
permissions -rw-r--r--
Remove CSS files from version control.

import rootReducer from '../reducers';
import {createStore} from 'redux';
import Immutable from 'immutable';

const storeInitialState = Immutable.Map({
    notes: Immutable.List([])
});

export default (initialState = storeInitialState) => {
  return createStore(rootReducer, initialState);
};