react-idle-timer
Advanced tools
Comparing version
{ | ||
"name": "react-idle-timer", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "Activity detection for React.js", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
# React Idle Timer | ||
> React.js port of jQuery.idleTimer with some extras. | ||
[](https://nodei.co/npm/react-idle-timer/) | ||
[](https://npmjs.org/package/react-idle-timer/) | ||
@@ -49,3 +49,3 @@ # Installation | ||
- **element** {*Object*} - Defaults to document, may pass a ref to another element | ||
- **format** {*String*} - moment.js format string applied to last active time | ||
- **format** {*String*} - moment.js format string applied to `lastActiveTime` | ||
@@ -60,4 +60,4 @@ ## Methods | ||
- **lastActiveTime()** {*String*} - Returns the last active time as a number or a formatted string if the `format` prop is defined | ||
- **isIdle()** {*Boolean*} - Returns weather or not user is idle | ||
- **isIdle()** {*Boolean*} - Returns whether or not user is idle | ||
1166031
0