12
cuddle-leptos/crates/frontend/src/lib.rs
Normal file
12
cuddle-leptos/crates/frontend/src/lib.rs
Normal file
@@ -0,0 +1,12 @@
|
||||
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);
|
||||
}
|
Reference in New Issue
Block a user