1.0.0 • Published 5 years ago
@alobato/use-debounce v1.0.0
useDebounce
React hook debounce
Note: This is using the new React Hooks API
You'll need to install
react
,react-dom
, etc at^16.8.0
or above
Install
yarn add @alobato/use-debounce
Usage
import useKeyPress from '@alobato/use-debounce'
...
const [ search, setSearch ] = useState('')
const debouncedSearch = useDebounce(search, 500)
1.0.0
5 years ago