client/src/store/configureStore.js
author Alexandre Segura <mex.zktk@gmail.com>
Tue, 23 May 2017 16:18:34 +0200
changeset 5 5c91bfa8fcde
parent 3 3b5d37d84cfe
child 12 48ddaa42b810
permissions -rw-r--r--
Introduce SlateJS.

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