mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-29 22:13:08 +00:00
15 lines
263 B
Rust
15 lines
263 B
Rust
//! Example: Null/None Children
|
|
//! ---------------------------
|
|
//!
|
|
//! This is a simple pattern that allows you to return no elements!
|
|
|
|
use dioxus::prelude::*;
|
|
fn main() {}
|
|
|
|
static Example: FC<()> = |cx| {
|
|
cx.render(rsx! {
|
|
div {
|
|
|
|
}
|
|
})
|
|
};
|