@uplift-ltd/use-after-delay
v2.0.0
Published
use-after-delay
Downloads
36
Readme
@uplift-ltd/use-after-delay
Installation
npm i --save @uplift-ltd/use-after-delay
API
useAfterDelay
Set a timeout to delay an action, such as showing a loader.
import { useAfterDelay } from "@uplift-ltd/use-after-delay";
const pastDelay = useAfterDelay(250);
if (!pastDelay) {
return null;
}
return <Loading>