Simon 37401402a1
Allow the use of Rust keywords for element names (#1772)
* 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
2021-02-28 15:49:58 +01:00

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 }</> };
}