yew/examples/js_callback
WorldSEnder daf6ec0152
Reduce size of examples (#2601)
* Reduce size of examples with this one weird trick

* oops, fixup function_router
2022-04-11 17:02:59 +05:00
..
src `#[cfg(feature = "render")]` and `yew::Renderer` (#2498) 2022-03-20 00:48:47 +09:00
Cargo.toml `#[cfg(feature = "render")]` and `yew::Renderer` (#2498) 2022-03-20 00:48:47 +09:00
README.md Update documentation for the new examples (#1586) 2020-09-23 03:47:28 +02:00
index.html Reduce size of examples (#2601) 2022-04-11 17:02:59 +05:00
index.scss Overhaul examples (#1559) 2020-09-22 00:17:48 +02:00

README.md

Js Callback Example

Demo

Concepts

The example uses wasm-bindgen to import functionality from Javascript. To learn more about the subject, refer to "The wasm-binden Guide".

Improvements

This example is a purely technical demonstration and lacks an actual purpose. The best way to improve this example would be to incorporate this concept into a small application.

  • Do something more complex in the Javascript code to demonstrate more of wasm-bindgen's capabilities.
  • Show a loading indicator while waiting after pressing "Get the payload later!".
  • Improve the presentation of the example with CSS.