mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-03-01 04:02:55 +00:00
* added react-fade-in type definitions * added version in * added type definitions for react-hook-mousetrap * resolved prefer-declare-function error
9 lines
250 B
TypeScript
9 lines
250 B
TypeScript
import useMousetrap from 'react-hook-mousetrap';
|
|
|
|
export const _ = () => {
|
|
useMousetrap('down', () => console.log('down arrow pressed'));
|
|
useMousetrap(['left', 'right'], () => console.log('left or right arrow pressed'));
|
|
|
|
return null;
|
|
};
|