//! basic example that renders a simple domtree to the page :) //! //! //! use dioxus_core::prelude::*; use dioxus_web::*; 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(|ctx, _| { ctx.view(html! {
// Title
"Jon's awesome site!!11"
// Subtext / description
"He worked so hard on it :)"
// Main number
"1337"
// Try another
}) })); }