Hint
Lightweight JS copy of the DOM — React diffs old vs new tree, applies minimal patches
The Virtual DOM is a JavaScript object tree that mirrors the real DOM. It's cheap to create and manipulate.
Reconciliation process:
Diffing heuristics (O(n) instead of O(n³)):
key prop to match old and new items// React sees these as DIFFERENT types → full rebuild
... → ... // destroys div, creates span
// Same type → just updates className attribute
→