mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-11 20:11:22 +00:00
clarify js part in the readme
This commit is contained in:
@ -148,10 +148,10 @@ support!. Let's take a look at that and see how it works.
|
||||
First create an `index.js` file:
|
||||
|
||||
```js
|
||||
const js = import("./js_hello_world");
|
||||
const helloWorld = import("./js_hello_world");
|
||||
|
||||
js.then(js => {
|
||||
js.greet("World!");
|
||||
helloWorld.then(wasmModule => {
|
||||
wasmModule.greet("World!");
|
||||
});
|
||||
```
|
||||
|
||||
|
Reference in New Issue
Block a user