Jason Yu has a nice tutorial on how to build a simple virtual dom - one of the most powerful mechanisms in Vue.js.

vue virtual dom

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. - by reactjs