Q. What is the virtual DOM in React?

  • (A) A real DOM in memory
  • (B) A UI rendered in JavaScript
  • (C) A lightweight in-memory representation of the real DOM
  • (D) A CSS engine
πŸ’¬ Discuss
βœ… Correct Answer: (C) A lightweight in-memory representation of the real DOM
Explanation: The virtual DOM is a lightweight copy of the real DOM that React uses for efficient updates.
Explanation by: Mr. Dubey
The virtual DOM is a lightweight copy of the real DOM that React uses for efficient updates.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
79
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
81%
Success Rate