Created
September 16, 2018 02:08
-
-
Save u-r-w/84905e7f792e2a6143638f7df7cc848f 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 { PASSWORD_CHANGED } from '../Action/types'; | |
const initialState = { password: '' } | |
export default function textInputCheckerReducer (state= initialState, action){ | |
console.log(action); | |
switch(action.type) { | |
case PASSWORD_CHANGED: | |
return { ...state, password: action.payload } | |
default: | |
return state | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment