useMemo
-
[React] React Hooks, useMemo, Custom Hooks카테고리 없음 2023. 3. 22. 21:30
HTML 삽입 미리보기할 수 없는 소스 📌 React Hooks 📍 Function Component와 Class Component Hook은 함수 컴포넌트에서 사용하는 메서드 🔗Class Component VS Function Component 🤷🏼 컴포넌트란? 단순히 템플릿을 넘어 데이터에 맞춰 UI를 만들어 주는 기능과 API를 통해 화면의 움직임 작업을 수행 클래스형 컴포넌트의 경우 state 기능 및 라이프 사이클 기능을 사용할 수 있으며 임의 메서드를 정의할 수 있다 class Counter extends Component { constructor(props) { super(props); this.state = { counter: 0 } this.handleIncrease = this.hand..