mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 16:44:15 -05:00
14 lines
332 B
Rust
14 lines
332 B
Rust
#[cfg(feature = "ssr")]
|
|
pub mod fileserv;
|
|
|
|
#[cfg(feature = "hydrate")]
|
|
#[wasm_bindgen::prelude::wasm_bindgen]
|
|
pub fn hydrate() {
|
|
use demo::App;
|
|
|
|
// 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);
|
|
}
|