User Idle Detector For React

Description:

The React Idle Detection component use to notify your app when the user is idle.

Installation:

# Yarn
$ yarn add react-idle
# NPM
$ npm install react-idle --save

Usage:

import Idle from 'react-idle'

Props:

defaultIdle: false,
render: () => null,
onChange: () => {},
timeout: 1000,
events: ["mousemove", "mousedown", "keydown", "touchstart", "scroll"]

Preview:

User Idle Detector For React

Tags:

Add Comment