useshake

1.0.2 • Public • Published

useshake

Installation

npm install --save useshake

Usage

import { useShake } from 'useshake'

function Home() {
  const shake = useShake({
    threshold: 15,
    timeout: 1000,
    restartDelay: 2000
  })

  const shook = shake ? 'Shook!' : 'Shake it'

  return <p>{shook}</p>
}

export default Home

Readme

Keywords

none

Package Sidebar

Install

npm i useshake

Weekly Downloads

0

Version

1.0.2

License

ISC

Unpacked Size

1.08 kB

Total Files

3

Last publish

Collaborators

  • chambaz