dioxus/examples/reference/empty.rs

13 lines
240 B
Rust
Raw Normal View History

2021-07-02 05:30:52 +00:00
//! 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| {
2021-07-07 20:19:10 +00:00
//
cx.render(rsx! {})
2021-07-02 05:30:52 +00:00
};