jhsdev
로그인
jhsdev
로그인
Component Life Cycle
Jeong Ha Seung
·
2022년 2월 8일
팔로우
0
리액트
0
리액트 개인공부
목록 보기
1/4
Component가 마운트 되면
constructor()
getDerivedStateFromProps에서 props와 state를 비교
render()
componentDidMount()
update 시에는
getDerivedStateFromProps에서 props와 state를 비교
shouldComponentUpdate 실행 - new props, state를 확인하고 rerender 할 것인지 결정
render()
update DOM()
componentDidUpdate()
마운트 해제 시
componentWillUnmount()
Jeong Ha Seung
블로그 이전했습니다. https://morethan-haseung-log.vercel.app
팔로우
다음 포스트
React에서 이벤트 적용하기
0개의 댓글
댓글 작성
관련 채용 정보