Clean up a number of examples
This commit is contained in:
30 files changed
+284
-413
No files matched your search
@@ -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" }
|
||||
|
||||
Reference in new issue
Block a user