//! basic example that renders a simple domtree to the page :) //! //! //! use dioxus_core::prelude::bumpalo::Bump; use dioxus_core::prelude::*; use dioxus_web::*; fn main() { wasm_logger::init(wasm_logger::Config::new(log::Level::Debug)); log::debug!("Hello world, from the app"); WebsysRenderer::simple_render(html! { // Body
// Title
// {format!("Fibonacci Calculator: n = {}",n)} "Fibonacci Calculator: n = {}"
// Subtext / description
// {format!("Calculated in {} nanoseconds",duration)} // {format!("Calculated in {} nanoseconds",duration)} "Calculated in {} nanoseconds"
// Main number
// {format!("{}",fib_n)}
// Try another
}); }