feat: initial template

Signed-off-by: kjuulh <contact@kjuulh.io>
This commit is contained in:
2023-06-04 12:37:22 +02:00
commit 337642c35f
20 changed files with 3287 additions and 0 deletions

21
src/lib.rs Normal file
View File

@@ -0,0 +1,21 @@
pub mod app;
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 |cx| {
view! { cx, <App/> }
});
}
}
}