mirror of
https://github.com/DioxusLabs/dioxus
synced 2024-11-23 20:53:06 +00:00
23 lines
547 B
Rust
23 lines
547 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| {
|
|
let bump = cx.bump();
|
|
cx.raw_element(
|
|
"div",
|
|
None,
|
|
&mut [],
|
|
&mut [],
|
|
cx.bump().alloc([
|
|
cx.text(format_args!("hello")),
|
|
cx.text(format_args!("hello")),
|
|
cx.fragment_from_iter(list),
|
|
]),
|
|
None,
|
|
)
|
|
}))
|
|
};
|