this.setState() => render() 실행! => this.setState()
무한 반복
그리하여 render() 안에는 무조건 this.setState() 쓰는 것이 아니다!
'TIL > REACT' 카테고리의 다른 글
리액트 라이프 사이클 (0) | 2019.10.11 |
---|---|
props 는 부모가 설정. (props 추가설명) (0) | 2019.10.11 |
PureComponent & props 사용 방법 (0) | 2019.10.11 |
리액트 렌더링 & push(X) & shouldComponentUpdate(nextProps, nextState, nextContext) & {PureComponent} (0) | 2019.10.11 |
리액트 Component & props (0) | 2019.10.11 |
comment