Skip to content

Instantly share code, notes, and snippets.

@lesniakania
Created April 13, 2016 07:23
Show Gist options
  • Select an option

  • Save lesniakania/1316961fb8fca809be9e6adaf8bea2ad to your computer and use it in GitHub Desktop.

Select an option

Save lesniakania/1316961fb8fca809be9e6adaf8bea2ad to your computer and use it in GitHub Desktop.
'use strict';
import { createStore, combineReducers, compose, applyMiddleware } from 'redux';
import thunk from 'redux-thunk';
import { routeReducer } from 'redux-simple-router';
import SubmissionsReducer from './reducers/SubmissionsReducer';
const reducers = {
submissions: SubmissionsReducer,
routing: routeReducer
};
const reducer = combineReducers(reducers);
const createStoreWithMiddleware = compose(
applyMiddleware(thunk)
)(createStore);
const store = createStoreWithMiddleware(reducer);
export default store;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment