cuddle-templates/cuddle-leptos/crates/frontend/src/lib.rs
kjuulh c13631cf7f
feat: add cuddle leptos
Signed-off-by: kjuulh <contact@kjuulh.io>
2024-09-07 22:08:35 +02:00

13 lines
287 B
Rust

use app::*;
use leptos::*;
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
pub fn hydrate() {
// initializes logging using the `log` crate
_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
leptos::mount_to_body(App);
}