Skip to main content

What is the virtual DOM? How does react use the virtual DOM to render the UI?

Published 1 min readMarkdown
Part of seriesReact
What is the virtual DOM? How does react use the
virtual DOM to render the UI?

The virtual DOM (VDOM) is a programming concept where an ideal, or “virtual”, representation of a UI is kept in memory and synced with the “real” DOM by a library such as ReactDOM. This process is called reconciliation. During reconciliation, React calculates what exactly has changed without involving the actual DOM and then ensures that the actual DOM only repaints the necessary data.

Sources:

Virtual DOM and Internals –. (n.d.). React. https://reactjs.org/docs/faq-internals.html

About the author

  • Full Stack Developer with a passion for building web applications. PHP, Node.js, Laravel, MySQL, MongoDB. Love collaborating & making a difference

No comments yet. Be the first to comment.

More from this blog