Socket
Socket
Sign inDemoInstall

react-hotkeys-hook

Package Overview
Dependencies
Maintainers
1
Versions
111
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-hotkeys-hook - npm Package Compare versions

Comparing version 0.1.2 to 0.1.3

3

package.json
{
"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
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc