Create Leptos project

This commit is contained in:
2023-12-28 20:19:23 -05:00
commit 46ff5dfe7c
15 changed files with 3347 additions and 0 deletions

19
src/lib.rs Normal file
View File

@ -0,0 +1,19 @@
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(App);
}
}
}