Recent Posts
Link
Archives
꾸준히

이번 주차에 리액트 라이프사이클에 대해 공부하였습니다. 다시 한번 정리하며, 이전 프로젝트에서 이를 활용했던 사례를 공유하고자 합니다. 라이프 사이클 Life Cycle; 컴포넌트가 생성(Mounting), 업데이트(Updating), 소멸(Unmounting)의 과정을 거쳐 어떻게 동작하고 관리되는지 클래스형 컴포넌트생성 단계1. constructor클래스 컴포넌트를 초기화하는 함수constructor(props) { super(props); this.state = { count: 0 };} 2. getDerivedStateFromPropsprops로부터 state를 동기화하고 싶을 때 사용static getDerivedStateFromProps(props, state) { if (pro..
LG CNS AM CAMP 1기
2025. 1. 5. 23:58