A virtual DOM is referred as a lightweight JavaScript object which is originally the copy of the real DOM. It is basically a node tree which lists the elements, their attributes and content as Objects and their properties.
React’s render function creates a node tree out of the React components. After that, it updates the tree in response to the changes in the data model which is caused by various actions done by the user or by the system.