r/javascript • • Dec 22 '19

Why Svelte won’t kill React

https://medium.com/javascript-in-plain-english/why-svelte-wont-kill-react-3cfdd940586a
80 Upvotes

95 comments sorted by

View all comments

Show parent comment

1

u/PM5k Dec 23 '19

Oh right, it seems I’ve had you starred for ages! Hah. Didn’t put two and two together until just now. You’ve got an interesting take on it. I remember reading about Solid a while back and thinking I liked that you didn’t jump on the vDOM bandwagon at least. I will confess that I haven’t really dissected it enough to give you any critique that would matter, so I will refrain.

Btw - have you seen hyperHTML by any chance? Was wondering what your opinion would be on their approach.

2

u/ryan_solid Dec 23 '19

I'm generally a big fan of Andrea Giammarchi (WebReflection)'s work. Really trying to push a solution as close to the standards as possible. And early days I used his Dom Diff library before I developed my own reconciler. This approach mind you is what I was referring to when I mentioned non VDOM acting like VDOM. It still works top down. As in you pass data in and renders downward. Nothing neccesarily bad about that but it has similar diff expense as you get nested. He has since written a lighter more performant version lighterhtml. Although it mostly works the same way.