User Idle Detector For React

Category: Featured , Notification , React | January 8, 2018
Author: ReactTraining
Views Total: 49
Official Page: Go to website
Last Update: January 8, 2018
License: MIT

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