mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 04:33:06 +00:00
19 lines
333 B
Rust
19 lines
333 B
Rust
use dioxus::prelude::*;
|
|
use dioxus_desktop::Config;
|
|
|
|
fn main() {
|
|
Config::new()
|
|
.with_file_drop_handler(|_w, e| {
|
|
println!("{e:?}");
|
|
true
|
|
})
|
|
.launch(app)
|
|
}
|
|
|
|
fn app() -> Element {
|
|
rsx!(
|
|
div {
|
|
h1 { "drag a file here and check your console" }
|
|
}
|
|
)
|
|
}
|