react component life Cycle


react component life Cycle

https://reactjs.org/docs/react-component.html constructor() component가 mount될 때 component가 screen에 표시될 때, component가 Website에 갈 때, constructor를 호출 그리고 나서 render 호출 componentDidmonunt가 알려줌 update는 add 혹은 minus를 클릭해서 state를 변경할 때 업데이트 setstate를 호출하면 component를 호출하고 먼저 render를 호출한 다음 업데이트가 완료되었다고 말하면 componentDidupdate가 실행...

react component life Cycle에 대한 요약내용입니다.

자세한 내용은 아래에 원문링크를 확인해주시기 바랍니다.



원문링크 : react component life Cycle