일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- 백준
- network
- DFS
- Python
- 리트코드
- Redux
- Graph
- Algorithm
- 프로그래머스
- 그레이들
- vscode
- 안드로이드
- DP
- Data Structure
- java
- git
- VIM
- 알고리즘
- Javascript
- 자바
- LeetCode
- 다이나믹 프로그래밍
- CS
- Database
- BFS
- 동적 계획법
- TypeScript
- frontend
- react
- db
Archives
- Today
- Total
목록PureComponent (1)
늘 겸손하게

React에서 지원하는 컴포넌트중에는 Pure component 라는 컴포넌트가 존재한다. Pure component에 대해 알아보자. [ React.PureComponent ] Pure component란 순수 컴포넌트로 같은 props와 state에 대하여 동일한 결과를 렌더링하는 컴포넌트라고 할 수 있다. 일반 React.Component로도 React.PureComponent를 구현할 수 있지만 React.PureComponent를 사용하여 성능 향상을 누릴 수 있다. [ PureComponent와 Component의 차이 ] 두 컴포넌트의 차이는 생명주기 함수인 'shouldComponentUpdate'를 어떻게 사용하느냐에 따라 갈라진다. [ shouldComponentUpdate ] 생명주기..
Programming/React
2022. 7. 23. 22:01