Skip to content

Commit

Permalink
chore(docs): typo in README "width" and "foward" (#1097)
Browse files Browse the repository at this point in the history
  • Loading branch information
msidqi committed Oct 14, 2022
1 parent d0b21a6 commit 4c88f3b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -433,11 +433,11 @@ function App() {
</KeyboardControls>
```
You can either respond to input reactively, it uses zustand (width the `subscribeWithSelector` middleware) so all the rules apply:
You can either respond to input reactively, it uses zustand (with the `subscribeWithSelector` middleware) so all the rules apply:
```jsx
function Foo() {
const pressed = useKeyboardControls(state => foward)
const pressed = useKeyboardControls(state => forward)
```
Or transiently, either by `subscribe`, which is a function which returns a function to unsubscribe, so you can pair it with useEffect for cleanup, or `get`, which fetches fresh state non-reactively.
Expand Down

1 comment on commit 4c88f3b

@vercel
Copy link

@vercel vercel bot commented on 4c88f3b Oct 14, 2022

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.