use yew::prelude::*; pub struct Root; impl Component for Root { type Message = (); type Properties = (); fn create(_props: Self::Properties, _complink: ComponentLink) -> Self { Root } fn update(&mut self, _msg: Self::Message) -> ShouldRender { false } } impl Renderable for Root { fn view(&self) -> Html { html! { <>

{ "Hello world!" }

} } }