import { LISTA_CAMION, NUEVO_CAMION } from 'ba-actions/actionTypes'; const initState = { camiones : [] } const camion = (state = initState, action) => { switch (action.type) { case LISTA_CAMION: return { ...state, camiones: action.payload } case NUEVO_CAMION: return { ...state } default : return state } } export default camion;