mirror of
https://github.com/adoyle0/thaw.git
synced 2025-02-02 08:34:15 -05:00
21506b2164
* feat: add ssr_axum template * feat: demo added the ssr mode * fix: demo ssr mode * feat(ssr): mount_style * pref: delete some useless fikes * fix(ssr): problems caused by using wasm_bindgen * feat: add hydrate * pref: Demo component * fix(hydrate): teleport component * fix(hydrate): hydrate feature * fix(hydrate): tabs component * feat: GlobalStyle component margin style * docs(ssr): static assets
17 lines
415 B
Rust
17 lines
415 B
Rust
use cfg_if::cfg_if;
|
|
pub mod fileserv;
|
|
|
|
cfg_if! { if #[cfg(feature = "hydrate")] {
|
|
use leptos::*;
|
|
use wasm_bindgen::prelude::wasm_bindgen;
|
|
use demo::App;
|
|
|
|
#[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);
|
|
}
|
|
}}
|