Portals Example

Demo

This example renders elements into out-of-tree nodes with the help of portals.

Concepts

  • Manually creating Html without the html! macro.
  • Using web-sys to manipulate the DOM.

Running

Run this application with the trunk development server:

trunk serve --open