💡useReducer컴포넌트 내부에 새로운 State를 생성하는 React Hook모든 useState는 useReducer로 대체 가능상태 관리 코드를 컴포넌트 외부로 분리할 수 있음 import { useReducer } from "react";// # 3번: 상태를 어떻게 변화시킬지 적용// reducer : 변환기// -> 상태를 실제로 변화시키는 변환기 역할function reducer(state, action) { // if (action.type === "INCREASE") { // return state + action.data; // return만 해주면 값은 자동으로 state값으로 반영된다. // } else if (action.type === "DECR..