como/crates/como_web/src/lib.rs
kjuulh 71b5a63700
Some checks failed
continuous-integration/drone/push Build is failing
feat: with como_web
Signed-off-by: kjuulh <contact@kjuulh.io>
2023-10-21 11:23:11 +02:00

28 lines
417 B
Rust

pub mod api;
pub mod app;
pub mod common;
pub mod fallback;
pub mod features;
pub mod routes;
use cfg_if::cfg_if;
cfg_if! {
if #[cfg(feature = "hydrate")] {
use wasm_bindgen::prelude::wasm_bindgen;
#[wasm_bindgen]
pub fn hydrate() {
use app::*;
use leptos::*;
console_error_panic_hook::set_once();
leptos::mount_to_body(move || {
view! { <App/> }
});
}
}
}