How does the Real DOM differ from the Virtual DOM?

Posted by Andre Scott | Updated on
  • DOM Manipulation – Real DOM supports a very expensive DOM manipulation. Virtual DOM, on the contrary, has an inexpensive DOM manipulation.
  • Element Update – Real DOM creates a new DOM when an element updates. Virtual DOM doesn’t do so in such a case. Instead, it updates the JSX.
  • Memory Wastage – Real DOM causes a lot of memory wastage while there is no memory wastage for Virtual DOM.
  • Update Speed – Real DOM updates slowly. On the other end, the virtual DOM updates faster.
  • Updating HTML – Real DOM can directly update HTML, while virtual DOM can’t update HTML directly.

If you like this question & answer and want to contribute, then write your question & answer and email to freewebmentor[@] Your question and answer will appear on and help other developers.

Related Questions & Answers