React 자주쓰는 Component

컴퓨터와 일상·2021년 7월 5일
0

React

목록 보기
1/1

Mounting

생성되는것

실행되는 순서

1 . constructor()
2 . render()
3 . componentDidMount()

Updating

그냥 업데이트
상태변환할때
실행되는 순서

1 . render()
2 . componentDidUpdate()

Unmounting

component 죽이기
페이지 전환시에 사용
state 등 사용

componentWillUnmount()

profile
프로그래밍 기록 정리

0개의 댓글