You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importuseDebouncefrom'./path/to/useDebounce'functionComponent(){constdebounce=useDebounce()functionhandleClick(event: React.ChangeEvent<HTMLInputElement>){console.log('Clicked with debounce')}return<inputtype="text"onChange={debounce(handleClick)}/>}
Any remark will be highly appreciated!
The text was updated successfully, but these errors were encountered:
I would like to propose a better typed version of your
useDebounce
, here my actual step:Usage:
Any remark will be highly appreciated!
The text was updated successfully, but these errors were encountered: