A Virtual DOM is a collection of data structures (comprised of React elements) that mimics or mirrors the DOM that exists in browsers. And serves intermediate layer between actual DOM & application code..
– Virtual DOM
The Virtual DOM allows for efficient updates to the DOM using a fast diffing algorithm (heuristic diffing).
– Heuristic Diffing
Renderer like React-DOM will update virtual-DOM changes to browser DOM.
– React DOM
