Even though I am personally invested in #blazor, I think it is *critical* that other languages have quality UI frameworks for #webassembly. So I always like to boost things like the #leptos framework for #rust
Having a wide array of languages and frameworks for web development in #wasm is critical to long-term success of the underlying technology.
https://thenewstack.io/want-a-web-framework-for-rust-not-javascript-try-leptos/
I haven't tried either of the Rust WebDev frameworks seriously like the one in the video. Just looking at it superficially, I prefer Dioxus to Laptos. Have any of you had one and what is your experience with it?
Dioxus vs Leptos | Rust GUI Wars
https://www.youtube.com/watch?v=eWuEs23sIOY
New video! Introduction to #Leptos #Axum #Prisma template with Admin dashboard and SSR/SPA website.
https://youtu.be/6eMWAI1D-XA
I gave up on pure-Rust front end frameworks because I couldn't find one that had a proper testing story.
But Leptos has nice testing support: https://leptos-rs.github.io/leptos/testing.html
It looks pretty good generally. Some quirks that might take some time to get used to, but very sensible-sounding, and well documented.
This might well be my choice for my next project.
@Jdreben @guardiarris @maegul Yes, at least #Leptos takes the #SolidJS approach of using signals to update only the minimal amount of DOM that actually changes.
Regarding JS: you don't need to touch it explicitly in those frameworks, BUT: it is still used to manipulate the #DOM.
For this to work, a lib called wasm-bindgen is used (awesome piece of technology!), which basically bridges #Rust <-> #JS:
https://rustwasm.github.io/docs/wasm-bindgen/
leptos_dom depends on it:
https://github.com/leptos-rs/leptos/blob/4ade062cd8cdbe9128aa7a2c8169c17c9d3e874c/leptos_dom/Cargo.toml#L28