* redux 적용 1. store 생성 - store를 만들어 state를 변경해야 함, store은 하나만 존재 - reducer라는 함수를 store에 주입해야 함 - reducer의 역할 : dispatch에 의해 action이 들어오면 reducer가 action 값과 기존의 있었던 state의 값을 참조해서 새로운 state 값을 만들어줌(state 값 변경) => state와 action을 인자로 받음 + state의 초기값 정의 function reducer(state, action) { if(state === undefined){ // 색깔 바꿔줘야 하는 예시라 컬러로 리턴 & 초기 state 값을 yellow로 return {color:"yellow"} } } var store = Re..