인프런 커뮤니티 질문&답변
shouldComponentUpdate NextProps 와 nextState 질문있습니다.
작성
·
204
0
shouldComponentUpdate(nextProps, nextState){
if(this.state !== nextState){
return true;
}
return this.props.info !== nextProps.info;
//true일때만 업데이트를 한다.
}
여기서 nextProps랑 this.props 랑
this.State랑 nextState차이 상세히 설명가능
한가요 ㅠ?
답변
답변을 기다리고 있는 질문이에요
첫번째 답변을 남겨보세요!





