이전에 했던 것과 같이 import를 해준다. import { createStore } from "redux"; state값을 배열로 초기화 해준다. 여기까지는 특별할 것이 없다. const reducer = (state = [], action) => { return state; } const store = createStore(reducer); action을 통해 state 값을 변경해 줄 것인데 여기서 일반 string이나 number 형식과 차이가 발생한다. 중요!!! state의 값은 read only 이다. state의 값을 직접 변경해서는 안된다. XXXXXXXXXXX state.push() XXXXXXXXXXX 와 같은 작업을 해서는 안된다. 절대로! const reducer = (state..