Created
May 12, 2019 18:36
-
-
Save jitinics/32d85b1b152863d5554bd3830b542af7 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
export default (state = {}, action) => { | |
switch (action.type) { | |
case 'LOGIN_SUCCESS': | |
return action.payload | |
default: | |
return state | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment