mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-21 01:53:15 +00:00
18 lines
333 B
Rust
18 lines
333 B
Rust
|
#![allow(non_snake_case)]
|
||
|
use dioxus::prelude::*;
|
||
|
|
||
|
fn main() {
|
||
|
dioxus::desktop::launch(App);
|
||
|
}
|
||
|
|
||
|
fn App(cx: Scope) -> Element {
|
||
|
// ANCHOR: prevent_default
|
||
|
cx.render(rsx! {
|
||
|
input {
|
||
|
prevent_default: "oninput",
|
||
|
prevent_default: "onclick",
|
||
|
}
|
||
|
})
|
||
|
// ANCHOR_END: prevent_default
|
||
|
}
|