//! basic example that renders a simple VNode 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.render(html! {
// Title
"Jon's awesome site!!"
// Subtext / description
"He worked so hard on it :)"
// Main number
"1337"
// Try another
}) })); }