Skip to main content
Version: 0.21

Fragments

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

use yew::prelude::*;

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