@uplift-ltd/use-debounce
v3.0.0
Published
use-debounce
Downloads
33
Readme
@uplift-ltd/use-debounce
Installation
npm i --save @uplift-ltd/use-debounce
API
useDebounce
Debounce a state variable or prop.
import { useDebounce } from "@uplift-ltd/use-debounce";
function MyComponent() {
const [searchTerm, setSearchTerm] = useState("");
const debouncedSearchTerm = useDebounce(searchTerm, 500);
}