Cecile Tonglet 7f45af3a66
Make Html (VNode) cheap to clone (#3431)
* Make VNode cheap to clone

* Faster clone for list and portal

* Fixes hopefully good

* clippy

* more fixes hopefully good

* rustfmt

* More fixes

* more fixes...

* more fixes

* Update element-fail.stderr

* Macro fixes...

* CLEANUP

* Benchmark with divan

* WIP workflow

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* WIP

* Use the 2 workflows approach, will fix after merge if not working

* CLEANUP

* can i push that change here pretty please

* Trigger CI
2023-10-27 21:43:03 +05:00
..
2022-04-11 17:02:59 +05:00

Futures Example

Demo

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