Angular uses real DOM while react uses virtual DOM so what is the virtual DOM in React
Interviews2 answers
What is a virtual DOM in React
2 Answers
Virtual DOM is virtual representation of real DOM. It was introduced to handle inefficient updating problem. Virual DOM identifies the latest changes done in the code and updates DOM operations to only that part of code.
Primal LoboPosted Jun 27, 2021, 11:53 PM EDT
In short, a virtual DOM is the cloned version of HTML DOM. React uses this version for any UI render/rerenders and compares it with HTML DOM to update the nodes which are updated in Virtual DOM.
Mallikarjuna VrPosted Aug 16, 2020, 4:39 AM EDT


