use-debounce hook is installed over 1.2 million times a week and allows you to use debouncing without creating it yourself.
The use-debounce hook can save you from unnecessary re-renders, database queries and much more.
The number used at the end of the function is measured in milliseconds so for example 1,000 will equal one second.
Specify the time you want in-between each trigger event for the function to be fired.
Here is the NPM package for use-debounce: https://www.npmjs.com/package/use-deb...