use dioxus_core::prelude::*; fn main() {} struct SomeContext { items: Vec, } struct Props { name: String, } #[allow(unused)] static Example: FC = |cpt| { todo!() // let value = cx.use_context(|c: &SomeContext| c.items.last().unwrap()); // cx.render(LazyNodes::new(move |bump| { // builder::ElementBuilder::new(bump, "button") // .on("click", move |_| { // println!("Value is {}", cx.name); // println!("Value is {}", value.as_str()); // println!("Value is {}", *value); // }) // .on("click", move |_| { // println!("Value is {}", cx.name); // }) // .finish() // })) // cx.render(html! { //
//
// }) };