📜  什么是反应中的虚拟 dom - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:04:11.198000             🧑  作者: Mango

代码示例1
// dom 
- With the HTML DOM, JavaScript can access
and change all the elements of an HTML document.
- The DOM represents the document as nodes and objects; that way, 
programming languages can interact with the page.



// 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.