📄 primereact/hooks/usedebounce

File: usedebounce.md | Updated: 11/15/2025

Source: https://primereact.org/hooks/usedebounce/

Introducing PrimeReact v11 Alpha 🥁Learn More

useDebounce

Delays rapidly changing values to optimize performance.

Import#


import { useDebounce } from 'primereact/hooks';
         

Copy

Basic#


The value will only be reflected when time between keystrokes is above 400ms.

Debounced Value:

<InputText type="text" value={inputValue} onChange={(e) => setInputValue(e.target.value)} />
<span className="text-xl">
    Debounced Value: <strong>{debouncedValue}</strong>
</span>
         

Copy

  • Import

  • Basic

PrimeReact 10.9.7 by PrimeTek