constructor()2024년 11월 23일 constructor() 생성자 메서드(Method)로 컴포넌트(Component)를 만들 때 처음 실행된다. 이 메서드에서는 초기 state를 정할 수 있다.