16.
What is the purpose of the virtual DOM in React?
To improve the performance of UI rendering.
To make it easier to update and manipulate the UI.
To reconcile changes made to the UI efficiently.
All of the above.
Correct: D
The virtual DOM in React serves multiple purposes. It helps improve the performance of UI rendering by reducing the number of actual DOM manipulations. It also makes it easier to update and manipulate the UI by providing a simpler and more efficient way to make changes. Additionally, the virtual DOM allows React to reconcile changes made to the UI efficiently, updating only the necessary parts of the DOM instead of the whole UI.