Clean up a number of examples

This commit is contained in:
Jonathan Kelley committed 2024-01-15 13:06:05 -08:00
1 parent f2caa3a3ad
commit 6134a2ce24
30 files changed
+284 -413

No files matched your search

+7 -7
View File
@@ -2,15 +2,15 @@ use dioxus::prelude::*;
use dioxus_desktop::Config;
fn main() {
let cfg = Config::new().with_file_drop_handler(|_w, e| {
println!("{e:?}");
true
});
dioxus_desktop::launch_with_props(app, (), cfg);
Config::new()
.with_file_drop_handler(|_w, e| {
println!("{e:?}");
true
})
.launch(app)
}
fn app() -> Element {
fn app(_props: ()) -> Element {
rsx!(
div {
h1 { "drag a file here and check your console" }