mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-13 21: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:
|
First create an `index.js` file:
|
||||||
|
|
||||||
```js
|
```js
|
||||||
const js = import("./js_hello_world");
|
const helloWorld = import("./js_hello_world");
|
||||||
|
|
||||||
js.then(js => {
|
helloWorld.then(wasmModule => {
|
||||||
js.greet("World!");
|
wasmModule.greet("World!");
|
||||||
});
|
});
|
||||||
```
|
```
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user