Hacker News new | ask | show | jobs
by 3cats-in-a-coat 337 days ago
You already can do that. You need a tiny shim and you can forget it's JS and use all WASM.
1 comments

Can you point me to a howto/tutorial?
This is wasm-dom for Rust: https://crates.io/crates/wasm-dom There's also web-sys. Those are Rust centric, I'm sure there are others, but basically you only need the whim once, and then you write in your language of choice and compile to WASM, you never have to think about JS. Although... I may question the purist attitude. But you can do it.

Think of it like HTMX, the way people say it "avoids working with JS" (HTMX itself is written in JS). Same principle.