chore: tweak generic arguments and iterators in rsx
This commit is contained in:
1 parent
e8ae830cf2
commit
e09b6bf813
7 files changed
+93
-66
No files matched your search
@@ -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 {}
|
||||
})
|
||||
}
|
||||
Reference in new issue
Block a user