use dioxus::prelude::*; use dioxus_core as dioxus; use dioxus_web::WebsysRenderer; fn main() { wasm_logger::init(wasm_logger::Config::new(log::Level::Debug)); console_error_panic_hook::set_once(); wasm_bindgen_futures::spawn_local(WebsysRenderer::start(Example)) } pub static Example: FC<()> = |cx| { let (name, set_name) = use_state_classic(cx, || "...?"); log::debug!("Running component...."); cx.render(html! {
// Tagline "Dioxus Example: Jack and Jill" // Header

"Hello, {name}"

// Control buttons
}) };