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[@]gmail.com. Your question and answer will appear on FreeWebMentor.com and help other developers.
We use cookies to ensure that we give you the best experience and use cookies in order to personalize the advertising that you see on our website. Read more about our Privacy Policy.Got it!