Created
August 29, 2017 11:45
-
-
Save KucherenkoIhor/e2f68ecc0e97d94bb97f57012e027d7f to your computer and use it in GitHub Desktop.
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
function todoApp(state = initialState, action) { | |
switch (action.type) { | |
case SET_VISIBILITY_FILTER: | |
return { ...state, visibilityFilter: action.filter } | |
default: | |
return state | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment