-
-
Save ahamedali95/85f129c9b018b173c9429602f70bfdab to your computer and use it in GitHub Desktop.
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 bookReducer from './book'; | |
import reviewReducer from './review'; | |
const rootReducer = (state={}, action) => { | |
return { | |
review: reviewReducer(state.review, action), | |
book: bookReducer(state.book, {...action, ...state.review}) | |
}; | |
}; | |
export default rootReducer; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment