React Hook : state machine에 연결하는 방법 functional component에서 state를 가질 수 있게 해줌 => class component, did mount, render ... 등을 안해도 됨 => 함수형 프로그래밍 +) 관련 영상 참조 총 2가지의 useState hooks에 대해 정리 1. useState useState 항상 2개의 value를 return 한다. 초기에 state를 initialState를 세팅할 수 있는 옵션을 제공한다. const [item, getitem] = useState(1); **hook으로 짠 코드와 class component로 짠 코드 비교** [hook] const App=()=>{ const [item,setItem]=use..