mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-19 17:13:12 +00:00
18 lines
304 B
Rust
18 lines
304 B
Rust
|
#![allow(non_snake_case)]
|
||
|
use dioxus::prelude::*;
|
||
|
|
||
|
fn main() {
|
||
|
dioxus::desktop::launch(App);
|
||
|
}
|
||
|
|
||
|
fn App(cx: Scope) -> Element {
|
||
|
// ANCHOR: boolean_attribute
|
||
|
cx.render(rsx! {
|
||
|
div {
|
||
|
hidden: "false",
|
||
|
"hello"
|
||
|
}
|
||
|
})
|
||
|
// ANCHOR_END: boolean_attribute
|
||
|
}
|