Pergunta de entrevista da empresa GitStart Community

My knowledge on my programming languauge stack and i should describe the component lifecycle in ReactJS.

Resposta da entrevista

Sigiloso

17 de fev. de 2022

React Component goes through several phases of life: Mounting, Updating, and Umounting. We can describe the lifecycle as a series of methods that are triggered at the appropriate phases of a component’s life (e.g. componentDIdMount, render). During mounting, the component is created and placed in the DOM. The update phase occurs when the state of a component or its props changes. The last phase – unmounting – is the phase where the component is destroyed and removed from the DOM tree.

1