Angular uses real DOM while react uses virtual DOM so what is the virtual DOM in React
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.
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.