User Idle Detector For React

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

Download Details:

Author: ReactTraining

Live Demo: View The Demo

Download Link: Download The Source Code

Official Website: https://github.com/ReactTraining/react-idle

License: MIT

You Might Be Interested In:

Tags:

Add Comment