leptos-use/examples/signal_debounced/src/main.rs

20 lines
353 B
Rust
Raw Normal View History

2023-07-24 23:18:11 +01:00
use leptos::*;
use leptos_use::docs::demo_or_body;
use leptos_use::signal_debounced;
#[component]
2023-07-27 18:06:36 +01:00
fn Demo() -> impl IntoView {
// signal_debounced();
2023-07-24 23:18:11 +01:00
2023-07-27 18:06:36 +01:00
view! {}
2023-07-24 23:18:11 +01:00
}
fn main() {
_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
2023-07-27 18:06:36 +01:00
mount_to(demo_or_body(), || {
2023-07-27 19:48:21 +01:00
view! { <Demo/> }
2023-07-24 23:18:11 +01:00
})
}