Created
March 26, 2017 20:55
-
-
Save aminbenselim/dc1bf3aa6f4593b5d782bdaa359a5551 to your computer and use it in GitHub Desktop.
combine main reducers and single reducers
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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