You're not, the virtual dom removes overhead, that's exactly why it was introduced and one of the main reasons React took over from Angular, Backbone, etc
The overhead is minimal. It can be cached too. You barely spend 3% of the time in diffing the dom as per Facebook team. It unlocks React concurrent mode which is literally not possible to replicate in Svelte. React can also render as the component is being fetched.
The benefits of VDOM far outweigh it's cons. All Svelte has to it is smaller payload which can be managed with good caching.
Also there are React frameworks that help with Server side rendering with hybrid approach. Meaning it can just send html and css without JavaScript if there is no need for it
Upcoming React also has server components baked in. Which will further strengthen React's position.
4
u/[deleted] Jan 16 '21
I don't think you understand just how slow the DOM really is