Reducer reducer은 위에서 말했듯이 dispatch열차를 타고온 action의 type을 확인해서 그에 맞는 동작을 하는 곳입니다. 동작을 하기 때문에 function으로 작성이 됩니다. 더보기 import { REMOVE_FROM_CART, ADD_TO_CART, SET_QUANTITY } from '../actions/index' import { initialState } from './initialState' const itemReducer = (state = initialState, action) => { switch (action.type) { case ADD_TO_CART: //TODO return Object.assign({}, state, { cartItems: [...state..