3 ms·
Okay, but - why does Rust frontend libraries (like Yew and Seed) use vdom instead of doing whatever Svelte does? Actually, is anyone else doing it the Svelte w
by nextaccountic 5y ago
Okay, but - why does Rust frontend libraries (like Yew and Seed) use vdom instead of doing whatever Svelte does?
Actually, is anyone else doing it the Svelte way?
- posnet 5y agoThere are some VDom-less libraries popping up now. https://github.com/sycamore-rs/sycamore https://github.com/sycamore-rs/sycamore
- nextaccountic 5y agoThis is very cool, thanks!
- pcstl 5y agoBecause VDOM is useful for writing declarative code. It's DX over UX - and most of the time it won't impact UX anyway.
- the__alchemist 5y agoI created Seed. I didn't know any better at the time! I'm no longer a fan of the extra computations VDOM does. Svelte's approach sounds like a clever way to mix declarative code without running extraneous computation.
- nextaccountic 5y agoI understand. Btw, what do you think about MoonZoon? (https://github.com/MoonZoon/MoonZoon https://github.com/MoonZoon/MoonZoon) In special, the decision to not use Elm architecture. I see it's created by the current Seed maintainer. It appears MoonZoon uses https://github.com/Pauan/rust-dominator https://github.com/Pauan/rust-dominator which, like Sycamore, is also a DOM library that doesn't use vdom.
- the__alchemist 5y agoLooks like a cool concept. Martin started working on it some time after I moved on, so I don't have any insight on it. I'd considered incorporating Dominator instead of an original VDOM, but at the time, it wasn't obvious how you'd interface with it. Ie not much in the way of docs or examples.