use leptos::*; use leptos_use::docs::{demo_or_body, Note}; use leptos_use::signal_debounced; #[component] fn Demo() -> impl IntoView { let (input, set_input) = create_signal("".to_string()); let debounced = signal_debounced(input, 1000.0); view! {
Delay is set to 1000ms for this demo.

Input signal: {input}

Debounced signal: {debounced}

} } fn main() { _ = console_log::init_with_level(log::Level::Debug); console_error_panic_hook::set_once(); mount_to(demo_or_body(), || { view! { } }) }