From 9223df7d34505386f8650e03d979cd6e89c9b242 Mon Sep 17 00:00:00 2001 From: Jamie Kyle Date: Mon, 27 Nov 2023 16:35:38 -0800 Subject: [PATCH] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index e39f0ef..a519d5c 100644 --- a/README.md +++ b/README.md @@ -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": () => { @@ -59,7 +59,7 @@ returned `unsubscribe()` function. ```js import { useEffect } from "react" -import tinykeys from "tinykeys" +import { tinykeys } from "tinykeys" function useKeyboardShortcuts() { useEffect(() => {