Skip to content

Commit

Permalink
Update exercises/03.compound-components/02.problem.validation/toggle.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
kentcdodds authored Oct 18, 2024
1 parent 0ea7a63 commit d6f6b91
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export function Toggle({ children }: { children: React.ReactNode }) {

// 🐨 create a custom useToggle() hook here
// create a new context variable and read ToggleContext with use
// when no context is found, throw an error with usefull debugging information
// when no context is found, throw an error with a useful message
// otherwise return the context

export function ToggleOn({ children }: { children: React.ReactNode }) {
Expand Down

0 comments on commit d6f6b91

Please sign in to comment.