DEV Community

Discussion on: Svelte Needs A Virtual DOM

 
nordquist profile image
Marcus Nordquist

Look, what you are doing in your comparison here; dev.to/svaani/is-virtual-dom-neede..., is just bad practice - it is really not even related to Svelte. You are comparing apples and oranges and like someone else already stated, you can do batch updates to the DOM with Svelte without having it continuously update on every fired event.

I have rebuilt complex UIs from React to Svelte that way outperforms the previous version in React, but you need to have a good understanding of what you are doing and how you structure your code.

Also, note that Svelte compiles on component level, not holistically, which means that you do not or should not build your complex UI the same way you would with React.