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

"hello world!"

"hello world!"

"hello world!"

"hello world!"

}) }; // toodo: derive this impl Properties for SomeProps { type Builder = SomePropsBuilder<((),)>; fn builder() -> Self::Builder { SomeProps::builder() } }