DEV Community

Discussion on: Is Virtual DOM overhyped?

Collapse
 
joelbonetr profile image
JoelBonetR 🥇

Virtual DOM” is more of a pattern than a specific technology. You'll need to update the DOM sooner or later so you'll end up manipulating the DOM anyways.
It will perform better or worse depending on the workaround you choose either be on the virtual DOM itself or playing with the DOM directly.

If we take a look at Angular and Vue:

Angular, doesn't have Virtual DOM, it uses its own mechanism for Change Detection combined with Zones, which helps Angular going through the Change Detection tree from its root to its leaves.

On the other hand, Vue uses the virtual DOM pattern as well.

You can take a look at performance metrics here: stefankrause.net/js-frameworks-ben...

I noticed that stefankrause.net needs an SSL cert upgrade but well.
Take it with a grain of salt as I'm not sure about what he's/they're running to benchmark this.