Virtual DOM

A lightweight copy of the page structure kept as plain JavaScript objects, which a library such as React compares between renders instead of reading the real page.

In more detail

In React the term describes React elements and the tree React builds from them. Comparing two object trees in memory is cheap, so the library computes the few real DOM changes needed and applies only those. The React team now prefers to describe this simply as rendering and reconciliation.

Related terms

Taught in

References