mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* move yew/services to yew-services crate * fix stdweb examples * remove services feature usage from workflow * attempt at making CI pass * remove unused feature * add feature i missed during merge * okay, it should compile now * apply review * fix yew-stdweb & aplease fmt * misc fixes Co-authored-by: Justin Starry <justin.starry@icloud.com>
Js Callback Example
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.