chore: tweak generic arguments and iterators in rsx

This commit is contained in:
Jonathan Kelley committed 2022-11-15 20:58:56 -08:00
1 parent e8ae830cf2
commit e09b6bf813
7 files changed
+93 -66

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
use std::fmt::Display;
use dioxus::prelude::*;
fn main() {
dioxus_desktop::launch(app);
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
generic_child::<i32>{}
})
}
fn generic_child<T>(cx: Scope) -> Element {
cx.render(rsx! {
div {}
})
}