DEV Community

Discussion on: React useThrottle hook with usage example

Collapse
 
loonywizard profile image
Vladimir Nikitin

Thanks! Yes, you could pass second argument to useThrottle hook, example for 1000ms:

const throttledValue = useThrottle(value, 1000)
Enter fullscreen mode Exit fullscreen mode