mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 00:17:17 +00:00
18 lines
351 B
Rust
18 lines
351 B
Rust
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus::desktop::launch_with_props(app, (), |c| {
|
|
c.with_file_drop_handler(|_w, e| {
|
|
println!("{:?}", e);
|
|
true
|
|
})
|
|
});
|
|
}
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
cx.render(rsx!(
|
|
div {
|
|
h1 { "drag a file here and check your console" }
|
|
}
|
|
))
|
|
}
|