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").
- Valid
- Invalid
use *;
html! ;
use *;
// error: only one root html element allowed
html! ;