Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
jamiebuilds authored Nov 28, 2023
1 parent 111955c commit 9223df7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ Or for a CDN version, you can use it on [unpkg.com](https://unpkg.com/tinykeys)
## Usage

```js
import tinykeys from "tinykeys" // Or `window.tinykeys` using the CDN version
import { tinykeys } from "tinykeys" // Or `window.tinykeys` using the CDN version

tinykeys(window, {
"Shift+D": () => {
Expand Down Expand Up @@ -59,7 +59,7 @@ returned `unsubscribe()` function.

```js
import { useEffect } from "react"
import tinykeys from "tinykeys"
import { tinykeys } from "tinykeys"

function useKeyboardShortcuts() {
useEffect(() => {
Expand Down

0 comments on commit 9223df7

Please sign in to comment.