client/src/store/configureStore.js
author ymh <ymh.work@gmail.com>
Tue, 23 May 2017 13:15:34 +0200
changeset 3 3b5d37d84cfe
parent 1 client/src/store/configure-store.js@431977d7c9a6
child 12 48ddaa42b810
permissions -rw-r--r--
Some code rename and reorg + basic tests

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