useTimeoutWhen
Aboutβ
Takes a callback and fires it when a condition is true
Installationβ
npm install --save rooks
Importing the hookβ
import { useTimeoutWhen } from 'rooks';
Usageβ
function Demo() {
useTimeoutWhen(cb, 1000);
return null;
}
render(<Demo />);
Codesandbox Examplesβ
Basic Usageβ
Join Bhargav's discord serverβ
You can click on the floating discord icon at the bottom right of the screen and talk to us in our server.