What is the differnece between Real DOM and Virtual DOM?
Real DOM updates slowly, and is able to directly update the HTML. Whereas, Virtual DOM updates faster but is unable to directly update the HTML.
Real DOM can create a new DOM if element updates, but Virtual DOM only updates the JSX if element updates.
In Real DOM, DOM manipulation is expensive. In Virtual DOM, DOM manipulation is easy.
Too much memory wastage in Real DOM, but there is hardly any memory wastage in Virtual DOM.