mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-30 14:33:08 +00:00
19 lines
376 B
Rust
19 lines
376 B
Rust
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);
|
|
}
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
cx.render(rsx!(
|
|
div {
|
|
h1 { "drag a file here and check your console" }
|
|
}
|
|
))
|
|
}
|