Last active
August 19, 2016 03:39
-
-
Save alyssaBiasi/a78502949a0ec588df291557750fc202 to your computer and use it in GitHub Desktop.
REA Flux to Redux "After" - http://rea.tech/singletons-suck-aka-flux-to-redux/
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
export default function featureToggles(state={}, action) { | |
switch (action.type) { | |
case Actions.FEATURE_TOGGLES_UPDATED: | |
return { ...state, ...action.data }; | |
default: | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment