@everest-ui/react-hooks
v2.8.0
Published
This package contains a set of useful tools you might need all the time.
Readme
react-hooks
This package contains a set of useful tools you might need all the time.
Hooks
useDebounce
This is used to delay to update a value. You might see people use this approach for api calls. It takes two parameters:
value and delay.
const [searchTerm, setSearchTerm] = useState("");
const debouncedSearchTerm = useDebounce(searchTerm, 500);