1.0.2 • Published 5 years ago
useshake v1.0.2
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