Skip to main content
Version: 0.19.0

Fragments

The html! macro always requires a single root node. In order to get around this restriction, you can use an "empty tag" (these are also called "fragments").

use yew::html;

html! {
<>
<div></div>
<p></p>
</>
};