mirror of
https://github.com/adoyle0/leptos-use.git
synced 2025-02-03 03:14:15 -05:00
20 lines
394 B
Rust
20 lines
394 B
Rust
use leptos::*;
|
|
use leptos_use::docs::demo_or_body;
|
|
use leptos_use{{#if module}}::{{ module }}{{/if}}::{{ function_name }};
|
|
|
|
#[component]
|
|
fn Demo() -> impl IntoView {
|
|
|
|
{{ function_name }}();
|
|
|
|
view! { }
|
|
}
|
|
|
|
fn main() {
|
|
_ = console_log::init_with_level(log::Level::Debug);
|
|
console_error_panic_hook::set_once();
|
|
|
|
mount_to(demo_or_body(), || {
|
|
view! { <Demo/> }
|
|
})
|
|
}
|