Size0.15 kbView sourceuseDebounceValueDebounce a value.Installation npmpnpmyarnbunnpm install @1hook/use-debounce-value Usage import { useDebounceValue } from '@1hook/use-debounce-value' Debounce a state or a prop: const debounced = useDebounceValue(value, 500) // `debounced` will update 500ms after the last change of `value` Pending indicator: const debounced = useDebounceValue(value, 500) const pending = debounced !== valueuseDebounceFnA debounce function, reactified.useDisplayMediaReact hook to access and manage screen sharing capabilities using the Screen Capture API.