Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/exercise/01.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ function useDebounce<Callback extends (...args: Array<unknown>) => 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])
}
Expand Down
2 changes: 1 addition & 1 deletion src/exercise/02.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ function Details({selectedPokemon}: {selectedPokemon: PokemonData | null}) {
function Footer({user}: {user: User}) {
return (
<footer>
<p>{`Don't have a good dayhave a great day, ${user.name}`}</p>
<p>{`Don't have a good day, have a great day, ${user.name}`}</p>
</footer>
)
}
Expand Down
2 changes: 1 addition & 1 deletion src/exercise/03.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down