본문 바로가기
TIL/REACT

this.setState => render() 실행!

by koreashowme 2019. 10. 11.

this.setState() => render() 실행! => this.setState() 

무한 반복  

 

그리하여 render() 안에는 무조건  this.setState() 쓰는 것이 아니다!

comment