18.
What is the virtual DOM in React?
A lightweight copy of the actual DOM.
A data structure that represents the structure of a user interface.
A technique that allows React to efficiently update the actual DOM.
All of the above.
Correct: D
The virtual DOM in React is a lightweight copy of the actual DOM. It is a data structure that represents the structure of a user interface. React uses the virtual DOM to efficiently update the actual DOM by making minimal changes to the UI instead of re-rendering the entire page.