mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-14 00:17:17 +00:00
20 lines
302 B
Rust
20 lines
302 B
Rust
use std::rc::Rc;
|
|
|
|
use dioxus::prelude::*;
|
|
|
|
fn main() {
|
|
dioxus_desktop::launch(app);
|
|
}
|
|
|
|
fn app(cx: Scope) -> Element {
|
|
let login = use_callback!(cx, || |evt| async {
|
|
//
|
|
});
|
|
|
|
cx.render(rsx! {
|
|
button {
|
|
onclick: login,
|
|
"Click me!"
|
|
}
|
|
})
|
|
}
|