Pergunta de entrevista da empresa AbuErdan

How does react update the DOM ?

Resposta da entrevista

Sigiloso

31 de mar. de 2022

When the state of a component changes, React updates the virtual DOM tree. Once the virtual DOM has been updated, React then compares the current version of the virtual DOM with the previous version of the virtual DOM. This process is called “diffing”