mod util; mod app; mod theme; mod component; mod page; use wasm_bindgen::prelude::*; // When the `wee_alloc` feature is enabled, use `wee_alloc` as the global allocator. // #[cfg(feature = "wee_alloc")] #[global_allocator] static ALLOC: wee_alloc::WeeAlloc = wee_alloc::WeeAlloc::INIT; #[wasm_bindgen(start)] pub fn run_app() -> Result<(), JsValue> { #[cfg(feature = "console_error_panic_hook")] console_error_panic_hook::set_once(); yew::Renderer::::new().render(); Ok(()) }