Learn to answer questions like: Is 21 greater than 12?
Setup development environment
rustup target add wasm32-unknown-unknown
cargo install trunk wasm-bindgen-cli
Show the page in development server:
trunk serve
trunk serve --address 0.0.0.0 # to allow access from other devices
This Rebuilds the app whenever a change is detected and updates the local server.
Build/release the page to ./dist
directory:
trunk build --release
This is based on the template
cargo install cargo-generate
cargo generate --git https://github.com/yewstack/yew-trunk-minimal-template