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 Dec 16, 2020 in JAVA by SakshiSharma
0 votes
asked May 20, 2020 by GeorgeBell
0 votes
asked Jan 24, 2021 in JAVA by rajeshsharma
0 votes
asked Dec 8, 2020 in React JS by SakshiSharma
...