examples: upgrade to new version of dioxus core.

also add the inline_props macro
This commit is contained in:
Jonathan Kelley committed 2021-12-25 17:18:05 -05:00
1 parent 21e00c114e
commit cda759c659
41 files changed
+556 -253

No files matched your search

+3 -2
View File
@@ -11,7 +11,7 @@ use dioxus_hooks::*;
use dioxus_html as dioxus_elements;
fn main() {
simple_logger::init().unwrap();
// simple_logger::init().unwrap();
dioxus_desktop::launch(app);
}
@@ -21,6 +21,7 @@ fn app(cx: Scope<()>) -> Element {
cx.push_task(|| async move {
tokio::time::sleep(Duration::from_millis(1000)).await;
println!("count is now {:?}", count);
count += 1;
});
@@ -33,4 +34,4 @@ fn app(cx: Scope<()>) -> Element {
}
}
})
};
}