1 contributor
Like
Install use-timeout as a package?
Copied
npm i @bit/giladshoham.react-hooks.use.use-timeout
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
and packages in Bit or NPM to the example. any of the 1 million componentstoggle layout
chevron_left
chevron_right
useTimeout
Returns true
after a specified number of milliseconds.
Usage
import { useTimeout } from 'react-use';
const Demo = () => {
const ready = useTimeout(2000);
return <div>Ready: {ready ? 'Yes' : 'No'}</div>;
};