use std::fmt::Display; use dioxus::prelude::*; fn main() { launch_desktop(app); } fn app() -> Element { rsx! { generic_child { data: 0 } } } #[derive(PartialEq, Props, Clone)] struct GenericChildProps { data: T, } fn generic_child(props: GenericChildProps) -> Element { rsx! { div { "{props.data}" } } }