mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-03-18 19:20:51 +00:00
5 lines
167 B
JavaScript
5 lines
167 B
JavaScript
|
// 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)));
|