Example Using https://github.com/yishn/wasm-react
Install Rust & wasm-pack:
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
Add target
rustup target add wasm32-unknown-unknown
Install dependencies and start the server:
$ yarn
$ yarn build
$ yarn start