0 votes
in JAVA by
Differentiate between Real DOM and Virtual DOM.

1 Answer

0 votes
by

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.

...