Skip to content

Commit

Permalink
Merge pull request #1050 from jrysana/patch-1
Browse files Browse the repository at this point in the history
Improve words in hook API docs
  • Loading branch information
JohannesKlauss authored Jul 10, 2023
2 parents 7931b92 + 20f5c66 commit 828d7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion documentation/docs/api/use-hotkeys.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ With this option, react-hotkeys-hook supports both ways.
deps: any[] // default: []
```
The dependency array lets we use the hook just like Reacts internal `useCallback` or `useMemo` hook. This where our
The dependency array lets us use the hook just like Reacts internal `useCallback` or `useMemo` hook. This is where our
dependencies of the callback live. If for example our callback actions depend on a referentially unstable value or a
value that will change over time, we should add this value to our deps array. Check out the
[documentation part](/docs/documentation/useHotkeys/setting-callback-dependencies)
Expand Down

1 comment on commit 828d7b7

@vercel
Copy link

@vercel vercel bot commented on 828d7b7 Jul 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.