useThrottle react hook
Install it with yarn:
yarn add use-throttle
Or with npm:
npm i use-throttle --save
Demo
The simplest way to start playing around with use-throttle is with this CodeSandbox snippet: https://codesandbox.io/s/18yyn08y7
Simple Throttle
According to https://twitter.com/dan_abramov/status/1060729512227467264
;; { const text setText = ; const throttledText = ; return <div> <input defaultValue='Hello' onChange= { ; } /> <p>Actual value: text</p> <p>Throttle value: throttledText</p> </div> ;}