Leptos: Build fast web applications with Rust

  • > VDOM vs. fine-grained: Yew is built on the virtual DOM (VDOM) model: state changes cause components to re-render, generating a new virtual DOM tree. Yew diffs this against the previous VDOM, and applies those patches to the actual DOM. Component functions rerun whenever state changes. Leptos takes an entirely different approach. Components run once, creating (and returning) actual DOM nodes and setting up a reactive system to update those DOM nodes.

    yew:leptos::react:solidjs

    Very cool, I might try to convert a typescript+solidjs app to a leptos app later.

  • This looks pretty nice, but so do a lot of the alternatives. In trying to search for the perfect development model none of these libraries are being developed enough to find any traction, though.

    Not to take away from the effort btw, but I wish they'd bundle their efforts somehow.

    It's the difference between a Rust game engine like Amethyst which spent years being rewritten all the time and Bevy, which has a community and a clear focus and are just getting it done. The argument can be made that Bevy needed Amethyst to exist in order to figure out what to do, though. Oh well.