Created
July 30, 2016 19:21
-
-
Save IrakliJani/aab8c954c50841041e5dc170e6e0c572 to your computer and use it in GitHub Desktop.
Action aliases in 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
function linksReducer (state = Map(), action) { | |
switch (action.type) { | |
case CLOSE_LINK: | |
case REMOVE_LINK: | |
return state.delete(action.id) | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment