Virtual DOM
A virtual DOM is a lightweight JavaScript representation of the Document Object Model (DOM) used in declarative web frameworks such as React, Vue.js, and Elm.[src] Since generating a virtual DOM is relatively fast, any given framework is free to rerender the virtual DOM as many times as needed relatively cheaply.[src] The framework can then find the differences between the previous virtual DOM and the current one (diffing), and only makes the necessary changes to the actual DOM (reconciliation).[src] While technically slower than using just vanilla JavaScript, the pattern makes it much easier to write websites with a lot of dynamic content, since markup is directly coupled with state.[src] Similar techniques include Ember.js' Glimmer and Angular's incremental DOM.[src]
A virtual DOM is a lightweight JavaScript representation of the Document Object Model (DOM) used in declarative web frameworks such as React, Vue.js, and Elm.[src] Since generating a virtual DOM is relatively fast, any given framework is free to rerender the virtual DOM as many times as needed relatively cheaply.[src] The framework can then find the differences between the previous virtual DOM and the current one (diffing), and only makes the necessary changes to the actual DOM (reconciliation).[src] While technically slower than using just vanilla JavaScript, the pattern makes it much easier to write websites with a lot of dynamic content, since markup is directly coupled with state.[src] Similar techniques include Ember.js' Glimmer and Angular's incremental DOM.[src]
10 sentences · 10 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Virtual DOM." encyclopegia.org, 2026, https://encyclopegia.org/wiki/virtual-dom. Accessed 26 November 2026.
Chicago
"Virtual DOM." encyclopegia.org. Accessed November 26, 2026. https://encyclopegia.org/wiki/virtual-dom.
APA
encyclopegia.org. (2026). Virtual DOM. Retrieved November 26, 2026, from https://encyclopegia.org/wiki/virtual-dom
Accessed November 26, 2026 · CC BY-SA 4.0 · citation page · JSON