mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* tree-wide: update links to https://rustwasm.github.io/wasm-bindgen https://rustwasm.github.io/wasm-bindgen -> https://wasm-bindgen.github.io/wasm-bindgen https://rustwasm.github.io/docs/wasm-pack -> https://drager.github.io/wasm-pack/book/ https://rustwasm.github.io/wasm-pack -> https://github.com/drager/wasm-pack
Futures Example
Fetches Yew's README file and renders it to the page.
Concepts
This example shows off how to make asynchronous fetch requests using web-sys and Yew's futures support.
It makes use of yewtil's LinkFuture to easily send messages asynchronously.
It also contains a Markdown renderer which manually creates Html without using the html! macro.
Improvements
- Markdown rendering code should be cleaned up.
- Should make use of CSS to style the output.
- This example could use a better name.
- Since this features a Markdown renderer it should be possible to render more than just one document.
Running
Run this application with the trunk development server:
trunk serve --open