`npm i @softbind/hook-use-idle --save`
npm i @softbind/hook-use-idle --save
opt: Object: opt is a Object that you can pass. All props is available from activity-detector
idle: Boolean: Value that indicate when user is idle.
js
import { useIdle } from "@softbind/react-hooks";
const MyComponent = () => {
const idle = useIdle({ timeToIdle: 1000 });
return Idle: {idle.toString()};
};
``