mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-11 15:07:08 +00:00
10 lines
212 B
Rust
10 lines
212 B
Rust
//! Example: Null/None Children
|
|
//! ---------------------------
|
|
//!
|
|
//! This is a simple pattern that allows you to return no elements!
|
|
|
|
use dioxus::prelude::*;
|
|
|
|
pub fn Example(cx: Scope) -> Element {
|
|
None
|
|
}
|