boolean_attribute.rs 296 B

123456789101112131415161718
  1. #![allow(non_snake_case)]
  2. use dioxus::prelude::*;
  3. fn main() {
  4. dioxus_desktop::launch(App);
  5. }
  6. #[rustfmt::skip]
  7. fn App(cx: Scope) -> Element {
  8. // ANCHOR: boolean_attribute
  9. cx.render(rsx! {
  10. div {
  11. hidden: "false",
  12. "hello"
  13. }
  14. })
  15. // ANCHOR_END: boolean_attribute
  16. }