mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-14 20:11:37 +03:00
8 lines
179 B
JavaScript
8 lines
179 B
JavaScript
// For more comments about what's going on here, check out the `hello_world`
|
|
// example
|
|
const rust = import('./pkg/todomvc');
|
|
|
|
rust
|
|
.then(m => m.run())
|
|
.catch(console.error);
|