feat: event handling on desktop

This commit is contained in:
Jonathan Kelley committed 2022-11-17 20:00:39 -08:00
1 parent 073fea9ed3
commit 30ef225812
29 files changed
+424 -205

No files matched your search

+2 -8
View File
@@ -1,5 +1,3 @@
use std::fmt::Display;
use dioxus::prelude::*;
fn main() {
@@ -7,13 +5,9 @@ fn main() {
}
fn app(cx: Scope) -> Element {
cx.render(rsx! {
generic_child::<i32>{}
})
cx.render(rsx! { generic_child::<i32>{} })
}
fn generic_child<T>(cx: Scope) -> Element {
cx.render(rsx! {
div {}
})
cx.render(rsx! { div {} })
}