Differentiate between Real DOM and Virtual DOM.

avatar
35    1 year ago

Differentiate between Real DOM and Virtual DOM. 

Answers { 1 }
avatar
1 year ago


Real DOM
Virtual  DOM
1. It updates slow.
1. It updates faster.
2. Can directly update HTML.
2. Can’t directly update HTML.
3. Creates a new DOM if element updates.
3. Updates the JSX if element updates.
4. DOM manipulation is very expensive.
4. DOM manipulation is very easy.
5. Too much of memory wastage.
5. No memory wastage.