mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-12-19 17:13:12 +00:00
22 lines
492 B
Rust
22 lines
492 B
Rust
use dioxus_core::prelude::*;
|
|
|
|
fn main() {}
|
|
|
|
pub static Example: FC<()> = |cx| {
|
|
let list = (0..10).map(|_f| LazyNodes::new(move |_f| todo!()));
|
|
|
|
cx.render(LazyNodes::new(move |cx| {
|
|
cx.raw_element(
|
|
"div",
|
|
None,
|
|
[],
|
|
[],
|
|
[
|
|
cx.text(format_args!("hello")),
|
|
cx.text(format_args!("hello")),
|
|
cx.fragment_from_iter(list),
|
|
],
|
|
None,
|
|
)
|
|
}))
|
|
};
|