user_reducer.js 284 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 import { LOGIN_USER } from '../_actions/types'; export default function (state={}, action){ switch (action.type) { case LOGIN_USER: return { ...state, loginSuccess: action.payload} break; default: return state; } }