What is the Virtual DOM? in REACT

Practice



Virtual DOM (VDOM) is an in-memory representation of the Real DOM . The UI representation is kept in memory and synced with the "real" DOM. This is the step between the render function being called and the elements being displayed on screen. This whole process is called reconciliation .

What is the Virtual DOM? in REACT

Advantages of the React virtual DOM

  • Fast and efficient "diff" algorithm
  • Multiple front-ends (JSX, hyperlink)
  • Light enough to run on mobile devices
  • Plenty of traction and mindshare
  • Can be used without React (i.e. as a standalone engine)

Disadvantages of the React virtual DOM

  • A full copy of the DOM in memory (higher memory usage)
  • No differentiation between static and dynamic elements

See also

  • DOM
  • React
created: 2020-02-23
updated: 2026-03-08
244



Was this answer useful?
Choose a quick rating so we can improve the next answer for you.
How satisfied are you?


Comments

To leave a comment

If you have any suggestion, idea, thanks or comment, feel free to write. We really value feedback and are glad to hear your opinion.
To reply

Lectures and tutorial on "Scripting client side JavaScript, jqvery, BackBone"

Terms: Scripting client side JavaScript, jqvery, BackBone