yew/examples/js_callback
Kaede Hoshikawa 8bc2212716
#[cfg(feature = "render")] and yew::Renderer (#2498)
* Bring changes to this branch.

* Bring changes to this branch.

* Add feature render and renderer.

* Bring changes to this branch.

* Migrate examples to Renderer.

* Satisfy no any render.

* Satisfy ssr.

* Satisfy feature render.

* Lint feature soundness.

* Suppress tests.

* Fix pr-flow, update docs.

* Add a notice.

* Adjust visibility.

* Correctly feature gate tests.

* make test scope available under feature render.

* Fix CI.

* Fix CI.

* Restore tests module to its original place as well.

* Make bundles crate private.

* Make most bundle APIs private.

* Adjust docs.

* Adjust debug implementation.

* Replace start_app with Renderer.

* Adjust documentation.

* Remove unused lint.

* Remove start_app from docs.

* DomBundle -> ReconcileTarget.

* Adjust documentation.

* Once render, now csr.

* Fix docs as well.
2022-03-20 00:48:47 +09:00
..
2020-10-10 23:58:34 +02:00
2020-09-22 00:17:48 +02:00

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.