Last active
March 29, 2019 15:06
-
-
Save iagodahlem/3347ee0f05cd62fbb4ece961b1178911 to your computer and use it in GitHub Desktop.
Scalable Frontend - The State Layer - Articles Combine 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
const isLoadingReducer = (state, action) => newState | |
const errorReducer = (state, action) => newState | |
const listReducer = (state, action) => newState | |
const articlesReducer = combineReducers({ | |
isLoading: isLoadingReducer, | |
error: errorReducer, | |
list: listReducer, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment