dioxus/examples/reference/empty.rs
2021-07-02 01:30:52 -04:00

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 {
}
})
};