Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save iagodahlem/3347ee0f05cd62fbb4ece961b1178911 to your computer and use it in GitHub Desktop.
Save iagodahlem/3347ee0f05cd62fbb4ece961b1178911 to your computer and use it in GitHub Desktop.
Scalable Frontend - The State Layer - Articles Combine Reducers
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