Skip to content

Commit

Permalink
docs: typo in README "width" and "foward"
Browse files Browse the repository at this point in the history
  • Loading branch information
msidqi committed Oct 13, 2022
1 parent d0b21a6 commit 0535fb5
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

0 comments on commit 0535fb5

Please sign in to comment.