mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
* time for more hygiene * update corresponding tests * while I'm at it * now let's fix the actual issue * fix the publish examples CI while I'm at it * resolve clippy warnings
23 lines
449 B
Rust
23 lines
449 B
Rust
#![no_implicit_prelude]
|
|
|
|
fn main() {
|
|
::yew::html! {};
|
|
::yew::html! { <></> };
|
|
::yew::html! {
|
|
<>
|
|
<></>
|
|
<></>
|
|
</>
|
|
};
|
|
::yew::html! {
|
|
<key=::std::string::ToString::to_string("key")>
|
|
</>
|
|
};
|
|
|
|
let children = ::std::vec![
|
|
::yew::html! { <span>{ "Hello" }</span> },
|
|
::yew::html! { <span>{ "World" }</span> },
|
|
];
|
|
::yew::html! { <>{ children }</> };
|
|
}
|