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.

Related questions

0 votes
asked Mar 30, 2020 in JAVA by amita rallin
0 votes
asked Jul 2, 2019 in ReactJS by Venkatshastri
...