Skip to content

Instantly share code, notes, and snippets.

@aminbenselim
Created March 26, 2017 20:55
Show Gist options
  • Save aminbenselim/dc1bf3aa6f4593b5d782bdaa359a5551 to your computer and use it in GitHub Desktop.
Save aminbenselim/dc1bf3aa6f4593b5d782bdaa359a5551 to your computer and use it in GitHub Desktop.
combine main reducers and single reducers
import { combineReducers } from "redux";
import MainReducer from "./reducer_main";
import SingleReducer from "./reducer_single";
const rootReducer = combineReducers({
postsList: MainReducer,
currentPost: SingleReducer
});
export default rootReducer;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment