What is the difference between Real DOM and Virtual DOM?

  • Real DOM is faster than Virtual DOM
  • Virtual DOM is faster than Real DOM
  • Real DOM is a physical representation of the web page, while Virtual DOM is a virtual representation
  • Virtual DOM is a physical representation of the web page, while Real DOM is a virtual representation
The Real DOM is a physical representation of the web page, consisting of all the HTML elements, their attributes, and their relationships with each other. The Virtual DOM, on the other hand, is a lightweight JavaScript representation of the Real DOM. The Virtual DOM allows React to update the UI efficiently by minimizing the number of updates needed to the Real DOM.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *