use yew::prelude::*; #[derive(Clone, Properties, PartialEq)] struct Props { a: usize, } #[function_component(Comp)] fn comp(props: &Props, invalid: String) -> Html { html! {
{ props.a } { invalid }
} } #[function_component(Comp)] fn comp3(props: &Props, invalid: String, another_invalid: u32) -> Html { html! {{ props.a } { invalid } { another_invalid }
} } fn main() {}