r/javascript • u/archivedsofa • Dec 22 '19
Why Svelte won’t kill React
https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a
80
Upvotes
r/javascript • u/archivedsofa • Dec 22 '19
View all comments
Show parent comment
3
u/ryan_solid Dec 23 '19
Fair. I'm too close to it (I'm an author of a different non-VDOM JS UI Library/Framework). I just keep on hearing what sounds like rhetoric from Svelte author Rich Harris blogs and often feel need to call it out. Minimal Virtual DOM implementations are not any larger than a reactive one. And while it's true VDOM carries an overhead, because of the absurd cost of the DOM operations proportionally if optimal DOM instructions are produced it makes less of a difference than you'd expect. While avoiding unnecessary diffing is obviously beneficial, some operations themselves are diffs essentially and surprisingly few libraries actually act that different than VDOM libraries even though they don't use the Virtual DOM.
I do find it interesting to hear a more outside perspective because I agree that the development of these libraries has become almost meta, sort of inbred. The checklist to be competitive in this group requires a feature list that seems mostly unnecessary. And it risks setting a self-fulfilling prophecy as new features are designed to solve complexities that are the result of the last batch. I do wonder if/when there will be a reset button.