Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- 중단
- 리액트
- 팁
- Unity
- Explicit Conversion
- oveflow
- Subscribe
- implicit Conversion
- C#
- GetKey
- stopcoroutine
- 마우스
- 명시적형변환
- 훅
- 불러오기
- JSON
- 오버플로우
- File
- Fetch
- 구독
- 암시적형변환
- 리액트네이티브
- 키보드
- 저장
- OnMouseClick
- >.NET
- 클래스
- 코루틴
- 유니티
- useEffect
Archives
- Today
- Total
목록리액트 (1)
Log to grow
[React] useEffect와 hook 생명주기(life-cycle)
1. class에서의 생명 주기 ref : projects.wojtekmaj.pl/react-lifecycle-methods-diagram/ * component가 mount 시작 되면 1. constructor가 가장 먼저 실행 2. getDerivedStateFromProps에서 props와 state를 비교 3. render component 4. update DOM 5. componentDidMount가 실행 * component가 update 될 때 (new props or setState) 1. getDerivedStateFromProps에서 props와 state 비교 2. shouldComponentUpdate 실행 - new props, state를 확인하고 rerender 할 것인지 결..
FE/React
2020. 10. 31. 16:04