const onClick2 = debounce(onClick, 300)
const onClick2 = debounce(onClick, 300, true); 
const onClick3 = useCallback(onClick2, []);
const onClick2 = debounce(onClick, 300, true);

Source

Leave a Reply

Your email address will not be published. Required fields are marked *