What is the virtual DOM?
- the virtual DOM is only representation of the DOM, whenever state in our application changes, the virtual DOM is updated. Virtual DOM is much faster than the DOM because every new virtual DOM tree is compared with its previous iteration before virtual DOM makes minimal updates to the real DOM.
- basically efficiently and minimally updates the UI without rerendering whole page