Pergunta de entrevista da empresa Desjardins

How does React manage rendering?

Resposta da entrevista

Sigiloso

3 de nov. de 2025

First, React triggers an initial render and re-renders whenever its state or props change. During rendering, React calls the component’s render function to produce a virtual DOM, which it then compares with the previous virtual DOM. Based on this comparison, React updates only the parts of the real DOM that have changed.