DEV Community

Lorenzo Zarantonello for This is Learning

Posted on

10 2

React & Vue Virtual DOM vs Shadow DOM - Summary

It is a bit like the differences between Java and JavaScript!

Virtual DOM

  • a copy of the entire real DOM and is implemented on top of browser APIs.
  • used by libraries like React and Vue to address the problem of changing the DOM while keeping optimal performances.
  • plain JavaScript apps don’t use the virtual DOM.

Shadow DOM

  • inherent in web components and browser APIs.
  • a piece of DOM that is “fenced” in its own web component.
  • might be used while using libraries like React and Vue, or frameworks like Angular.

More Info

This is a super short summary of a longer article that I published on Medium.
You can find the article at React Virtual DOM vs Shadow DOM: What’s the Difference?

I am experimenting with this straight-to-the-point summary.
Let me know what you think!

Heroku

Amplify your impact where it matters most — building exceptional apps.

Leave the infrastructure headaches to us, while you focus on pushing boundaries, realizing your vision, and making a lasting impression on your users.

Get Started

Top comments (0)

👋 Kindness is contagious

Engage with a wealth of insights in this thoughtful article, valued within the supportive DEV Community. Coders of every background are welcome to join in and add to our collective wisdom.

A sincere "thank you" often brightens someone’s day. Share your gratitude in the comments below!

On DEV, the act of sharing knowledge eases our journey and fortifies our community ties. Found value in this? A quick thank you to the author can make a significant impact.

Okay