0.0.2 • Published 6 years ago

uselongtimenomove v0.0.2

Weekly downloads
1
License
MIT
Repository
-
Last release
6 years ago

Introduction

Detects if the user has not moved the mouse for a long time.

Quick Start

import useLongTimeNoMove from 'uselongtimenomove';

function App() {
  const isNoMoved = useLongTimeNoMove(5000);
  if(isNoMoved) return <div>User long time no move</div>
  return <div>User moved recently</div>
}
0.0.2

6 years ago

0.0.1

6 years ago