In this article we are going to show you Differentiate between Real DOM and Virtual DOM
Real DOM
- It updates slow.
- Can directly update HTML.
- Creates a new DOM if element updates.
- DOM manipulation is very expensive.
- Too much of memory wastage.
Virtual DOM
- It updates faster.
- Can’t directly update HTML.
- Updates the JSX if element updates.
- DOM manipulation is very easy.
- No memory wastage.