Pregunta de entrevista de AbuErdan

How does react update the DOM ?

Respuesta de la entrevista

Anónimo

31 mar 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”