React Interview QuestionWhat is the virtual DOM? How does react use the virtual DOMto render the UI?
The virtual DOM is like a replica of a real DOM which is used by React to build the UI. Later this virtual DOM is applied to the real DOM and UI is displayed.