Created
January 22, 2019 14:24
-
-
Save talyssonoc/972cc7cc84b931ed734cdb21af37b31b 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
import { AUTH } from './actionTypes'; | |
export const reducer = (state, action) => { | |
switch(action.type) { | |
// ... | |
case AUTH.SIGN_IN_SUCCESS: | |
return { | |
...state, | |
user: action.user | |
}; | |
// ... | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment