From 4c88f3b70ea7e7578b169ad7c7f5e510551cf2f1 Mon Sep 17 00:00:00 2001 From: vmod <42954251+msidqi@users.noreply.github.com> Date: Fri, 14 Oct 2022 10:24:07 +0100 Subject: [PATCH] chore(docs): typo in README "width" and "foward" (#1097) --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 3cbfc82be..8cfc1ab9b 100644 --- a/README.md +++ b/README.md @@ -433,11 +433,11 @@ function App() { ``` -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.