React
상태
yerintil
2020. 8. 13. 06:31
728x90
1. mounting
- constructor(자바스크립트 class 생성 시 호출)
컴포넌트가 마운트될 때, 화면에 표시될 때, 컴포넌트가 나의 웹사이트에 갈 때 constructor호출
- render (setstate 실행시)
componentDIdMount으로 rendered 완료 확인
2. updating
- 사용자에 의해 업데이트
componentDIdUpdate으로 updated 완료 확인
3. unmounting
- 컴포넌트가 죽는 것