coding180 icon

What is Virtual DOM?

Home > Interviews > Javascript

robort - 2022-10-05 05:53:45

A virtual (Virtual) DOM is a lightweight JavaScript object that represents the real DOM in memory. It occurs between calling the render function and displaying the element on the screen.

It is similar to a node tree in that it lists elements, their properties, and content as objects and their properties.

The render function constructs the React component's node tree and then updates it in response to data model mutations caused by various user or system actions.


Robort Gabriel

Lagos, Nigeria

Freelance Web Developer, Native Android Developer, and Coding Tutor.

  • UI / UX
  • JavaScript
  • Python
  • PHP
  • Kotlin
  • Java
  • Bootrap
  • Android
  • Laravel