What is the DOM?
First things, first. Before we discuss the virtual DOM you will need an understanding of the browser DOM in order to gain better insight. By definition the DOM stands for document object model.
The DOM defines the logical structure of documents and the way a document is accessed and manipulated
- W3.ORG
What is the VDOM?
The virtual DOM is a “Fake” digital representation of the original browser DOM generated by React components. The VDOM is faster then the real browser DOM when it comes to manipulating DOM elements.
The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library such as ReactDOM. This process is called reconciliation.
- React Documentation
DOM vs. VDOM
- Manipulating DOM is slower compared to the VDOM
- Manipulating VDOM is faster compared to the DOM