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