use dioxus::prelude::*; use dioxus_lazy::{lazy, List}; use dioxus_logger::tracing::Level; fn app() -> Element { rsx! { List { len: 100, size: 400., item_size: 20., make_item: move |idx: &usize| rsx! { "Item {*idx}" }, make_value: lazy::from_fn(|idx| { idx }) } } } fn main() { dioxus_logger::init(Level::INFO).unwrap(); console_error_panic_hook::set_once(); dioxus::launch(app); }