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

22 lines
378 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]
fn Demo(cx: Scope) -> impl IntoView {
signal_debounced(cx);
view! { cx,
}
}
fn main() {
_ = console_log::init_with_level(log::Level::Debug);
console_error_panic_hook::set_once();
mount_to(demo_or_body(), |cx| {
view! { cx, <Demo /> }
})
}