mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* Start rewrite * Rc > cloning props * fmt + rm useless file * move props inside `Context` * router compiles * fix boids example * fix counter example * fix crm example * fix dyn_create_destroy_apps example * fix file_upload example * fix futures example * fix game_of_life example * fix inner_html example * fix js_callback example * fix mount_point example * fix keyed_list example * fix web_gl example * fix two_apps example * fix todomvc example * fix timer example * fix store example * fix nested_list example * fix node_refs example * fix pub_sub example * fix multi_thread example * don't call `changed` if props weren't changed * formatting * fix doc tests, remove neq_assign * update router example, fix neq_assign compile errors * fix macro/rest of doc tests * start updating documentation * `Component`'s documentation * Apply suggestions from code review Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk> * Apply suggestions from code review (part 2) * Apply suggestions from code review (part 3) * fix context * clippy * post merge fixes Co-authored-by: mc1098 <m.cripps1@uni.brighton.ac.uk>
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.