use dioxus_core::prelude::*; fn main() -> Result<(), ()> { let p1 = Props { name: "bob".into() }; let mut vdom = VirtualDom::new_with_props(Example, p1); // vdom.update_props(|p: &mut Props| {}); Ok(()) } #[derive(Debug, PartialEq)] struct Props { name: String, } static Example: FC = |ctx, _props| { ctx.render(html! {

"hello world!"

"hello world!"

"hello world!"

"hello world!"

}) };