2018-09-20 16:20:42 -07:00
|
|
|
# web-sys: DOM hello world
|
2018-03-21 08:26:00 -07:00
|
|
|
|
2018-09-20 17:54:06 -07:00
|
|
|
[View documentation for this example online][dox] or [View compiled example
|
|
|
|
online][compiled]
|
2018-04-17 13:51:01 -07:00
|
|
|
|
2018-09-20 17:54:06 -07:00
|
|
|
[compiled]: https://rustwasm.github.io/wasm-bindgen/exbuild/dom/
|
2018-09-20 16:20:42 -07:00
|
|
|
[dox]: https://rustwasm.github.io/wasm-bindgen/examples/dom.html
|
2018-03-21 08:26:00 -07:00
|
|
|
|
2018-09-20 16:20:42 -07:00
|
|
|
You can build the example locally with:
|
2018-03-21 08:26:00 -07:00
|
|
|
|
|
|
|
```
|
2019-01-08 15:14:15 -08:00
|
|
|
$ npm run serve
|
2018-03-21 08:26:00 -07:00
|
|
|
```
|
|
|
|
|
2018-09-20 16:20:42 -07:00
|
|
|
and then visiting http://localhost:8080 in a browser should run the example!
|