mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-25 10:41:34 +00:00
Add an example of a minimal wasm module
This commit is contained in:
4
examples/add/index.js
Normal file
4
examples/add/index.js
Normal file
@ -0,0 +1,4 @@
|
||||
// For more comments about what's going on here, check out the `hello_world`
|
||||
// example
|
||||
const rust = import("./add");
|
||||
rust.then(m => alert('1 + 2 = ' + m.add(1, 2)));
|
Reference in New Issue
Block a user