Skip to content

Instantly share code, notes, and snippets.

@SathinduGA
Created September 9, 2018 16:13
Show Gist options
  • Save SathinduGA/793ebfe5ea6df21fc78d351685d3873f to your computer and use it in GitHub Desktop.
Save SathinduGA/793ebfe5ea6df21fc78d351685d3873f to your computer and use it in GitHub Desktop.
Store Config
import { createStore, combineReducers } from 'redux';
import counterReducer from './reducers/counter_reducer';
const rootReducer = combineReducers({
counter: counterReducer,
});
const configStore = () => {
return createStore(rootReducer);
};
export default configStore;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment