Skip to main content

Virtual DOM

Web

An in-memory copy of the DOM used to optimize UI updates.

A virtual DOM is a lightweight JavaScript representation of the real DOM. Libraries like React compute the minimal set of changes by diffing the previous and next virtual trees, then apply only those changes to the real DOM, improving performance.

← Back to full glossary