use leptos::*; use leptos_use::docs::demo_or_body; use leptos_use::{use_raf_fn, utils::Pausable}; #[component] fn Demo(cx: Scope) -> impl IntoView { let (count, set_count) = create_signal(cx, 0); let Pausable { pause, resume, is_active, } = use_raf_fn(cx, move |_| { set_count.update(|count| *count += 1); }); view! { cx,