[React] Hook- useState
⭐들어가며⭐
React에는 여러가지 Hook이 존재한다. 리액트 프로젝트를 만들기 쉽게 만든 API의 일종이다. 리액트 Hook 중에서 가장 기본 및 기초가 되는 useState에 대해 알아보자.
Built-in React Hooks – React
useState
공식문서 정의
→ useState is a React Hook that lets you add a state variable to your component.
원형
import {us...
blog.skku-comit.dev4 min read