What is the virtual DOM in React, and what problem does it solve?
-
A
A server-side copy of the DOM that reduces database queries
-
B
An in-memory representation of the UI that minimizes expensive direct DOM manipulations
-
C
A browser extension for debugging React applications
-
D
A virtual machine that runs JavaScript faster