From 49664c09cd1f6ad01c47c2ed3db03862bbf441f8 Mon Sep 17 00:00:00 2001 From: Ruben Casas Date: 2021年10月21日 23:38:55 +0100 Subject: [PATCH 1/2] fix(exercise): small typos --- src/exercise/01.tsx | 2 +- src/exercise/02.tsx | 2 +- src/exercise/03.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/exercise/01.tsx b/src/exercise/01.tsx index c0459ea2..4b707098 100644 --- a/src/exercise/01.tsx +++ b/src/exercise/01.tsx @@ -24,7 +24,7 @@ function useDebounce) => unknown>( // use the latest version of the callback here: // 💰 you'll need to pass an annonymous function to debounce. Do *not* - // simply change this to `debounc(latestCallbackRef.current, delay)` + // simply change this to `debounce(latestCallbackRef.current, delay)` // as that won't work. Can you think of why? return React.useMemo(() => debounce(callback, delay), [callback, delay]) } diff --git a/src/exercise/02.tsx b/src/exercise/02.tsx index 30653e70..184a516c 100644 --- a/src/exercise/02.tsx +++ b/src/exercise/02.tsx @@ -150,7 +150,7 @@ function Details({selectedPokemon}: {selectedPokemon: PokemonData | null}) { function Footer({user}: {user: User}) { return (
-

{`Don't have a good day–have a great day, ${user.name}`}

+

{`Don't have a good day have a great day, ${user.name}`}

) } diff --git a/src/exercise/03.md b/src/exercise/03.md index 736f4056..cf0afeee 100644 --- a/src/exercise/03.md +++ b/src/exercise/03.md @@ -7,7 +7,7 @@ Elaborate on your learnings here in `src/exercise/03.md` ## Background **One liner:** The Compound Components Pattern enables you to provide a set of -components that implicitely share state for a simple yet powerful declarative +components that implicitly share state for a simple yet powerful declarative API for reusable components. Compound components are components that work together to form a complete UI. The From 6df0c9cb5d37fb4f0e3840a67db1ec254417d6b1 Mon Sep 17 00:00:00 2001 From: "Kent C. Dodds" Date: 2021年10月23日 10:28:37 +0100 Subject: [PATCH 2/2] Update 02.tsx --- src/exercise/02.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/exercise/02.tsx b/src/exercise/02.tsx index 184a516c..8f3c009e 100644 --- a/src/exercise/02.tsx +++ b/src/exercise/02.tsx @@ -150,7 +150,7 @@ function Details({selectedPokemon}: {selectedPokemon: PokemonData | null}) { function Footer({user}: {user: User}) { return (
-

{`Don't have a good day have a great day, ${user.name}`}

+

{`Don't have a good day, have a great day, ${user.name}`}

) }

AltStyle によって変換されたページ (->オリジナル) /