Skip to content

Instantly share code, notes, and snippets.

@alashstein
Created September 16, 2018 02:08
Show Gist options
  • Save alashstein/84905e7f792e2a6143638f7df7cc848f to your computer and use it in GitHub Desktop.
Save alashstein/84905e7f792e2a6143638f7df7cc848f to your computer and use it in GitHub Desktop.
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