React

Virtual DOM

Definition

An in-memory representation of the real DOM that React uses to optimize updates. When state changes, React creates a new virtual DOM tree, diffs it against the previous one, and applies only the minimum necessary changes to the real DOM.

Code Example

Jsx

Learn More

Related Terms