how do you do debounce/throttle in reagent
i have a search component that fires an api call to aws as i type, i want to add delay, lets say 500ms
Same way you'd do it in JS - call setTimeout
, save its result, cancel it and reschedule if there's new input within 500ms.