Skip to content

Instantly share code, notes, and snippets.

View pradeepprakhar's full-sized avatar

pradeepkumar pradeepprakhar

View GitHub Profile
import { useState, useEffect } from 'react';
// Usage
function App() {
// Call our hook for each key that we'd like to monitor
const happyPress = useKeyPress('h');
const sadPress = useKeyPress('s');
const robotPress = useKeyPress('r');
const foxPress = useKeyPress('f');
@pradeepprakhar
pradeepprakhar / Jenkinsfile
Created July 27, 2019 01:57 — forked from merikan/Jenkinsfile
Some Jenkinsfile examples
Some Jenkinsfile examples