react-hotkeys-hook
Advanced tools
Comparing version 0.1.2 to 0.1.3
{ | ||
"name": "react-hotkeys-hook", | ||
"version": "0.1.2", | ||
"version": "0.1.3", | ||
"main": "dist/index.js", | ||
@@ -8,2 +8,3 @@ "typings": "dist/index.d.ts", | ||
"author": "Johannes Klauss", | ||
"keywords": ["react", "hook", "component", "hotkey", "shortcut", "keyboard", "shortcuts", "keypress", "hotkeys"], | ||
"license": "MIT", | ||
@@ -10,0 +11,0 @@ "scripts": { |
@@ -7,7 +7,11 @@ # react-hotkeys-hook | ||
`npm install react-hotkeys-hook` | ||
```shell | ||
npm install react-hotkeys-hook | ||
``` | ||
or | ||
`yarn add react-hotkeys-hook` | ||
```shell | ||
yarn add react-hotkeys-hook | ||
``` | ||
@@ -18,3 +22,3 @@ Make sure that you have `react@next` and `react-dom@next` installed, or otherwise hooks won't work for you. | ||
With TypeScript | ||
``` | ||
```typescript jsx | ||
export const ExampleComponent: React.FunctionComponent<{}> = () => { | ||
@@ -33,3 +37,3 @@ const [count, setCount] = useState(0); | ||
Or plain JS: | ||
``` | ||
```js | ||
export const ExampleComponent = () => { | ||
@@ -72,2 +76,2 @@ const [count, setCount] = useState(0); | ||
[hotkeys-js]: https://github.com/jaywcjlove/hotkeyshotkeys-js | ||
[hotkeys-js]: https://github.com/jaywcjlove/hotkeys |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
473070
73