rustwasm / team

A point of coordination for all things Rust and WebAssembly
MIT License
1.44k stars 60 forks source link

Create a project template for writing pure-Rust wasm web apps #57

Open fitzgen opened 6 years ago

fitzgen commented 6 years ago

It should have

Open questions:

aidanhs commented 5 years ago

If the selected backend for this project template offers some kind of synchronising between state in Rust and the dom (e.g. via a render method), it should have an accessible way to do controlled components, as otherwise it becomes easy to get your dom drifting out of sync with your state without noticing.

Note: I did a census of the Rust frameworks I'm aware of in the linked issue and this is an problem in all of them.

(I don't consider libraries which permit manually manipulation of the dom to have this issue, since it's clear that it's up to the user to keep things in sync)

kellytk commented 4 years ago

For reference: https://github.com/yewstack/yew-wasm-pack-minimal