Last active
March 29, 2019 15:02
-
-
Save iagodahlem/98bf6bc94d81ad38476c2b4c96600e3c to your computer and use it in GitHub Desktop.
Scalable Frontend - The State Layer - Combine Reducers
This file contains hidden or 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' | |
const authorsReducer = (state, action) => newState | |
const articlesReducer = (state, action) => newState | |
const rootReducer = combineReducers({ | |
authors: authorsReducer, | |
articles: articlesReducer, | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment