So, you want to implement debounce in a React app. Sounds like an easy enough task. You decide to write your own reusable hook, or reach for lodash to get easy reusable methods and you're ready to go! Right!!??
const debouncedFn = debounce((searchText) => {
console.log("debouncedFn&