• 카테고리

    질문 & 답변
  • 세부 분야

    프론트엔드

  • 해결 여부

    미해결

shouldComponentUpdate NextProps 와 nextState 질문있습니다.

20.06.12 16:27 작성 조회수 111

0

shouldComponentUpdate(nextProps, nextState){
if(this.state !== nextState){
return true;
}
return this.props.info !== nextProps.info;

//true일때만 업데이트를 한다.
}
여기서 nextProps랑 this.props 랑
this.State랑 nextState차이 상세히 설명가능
한가요 ㅠ?

답변 0

답변을 작성해보세요.

답변을 기다리고 있는 질문이에요.
첫번째 답변을 남겨보세요!