client/src/store/configureStore.js
author ymh <ymh.work@gmail.com>
Tue, 23 May 2017 17:47:59 +0200
changeset 7 218abb8b1cad
parent 3 3b5d37d84cfe
child 12 48ddaa42b810
permissions -rw-r--r--
update yarn lock

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);
};