Skip to content

Commit d6f6b91

Browse files
authored
Update exercises/03.compound-components/02.problem.validation/toggle.tsx
1 parent 0ea7a63 commit d6f6b91

File tree

1 file changed

+1
-1
lines changed
  • exercises/03.compound-components/02.problem.validation

1 file changed

+1
-1
lines changed

exercises/03.compound-components/02.problem.validation/toggle.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export function Toggle({ children }: { children: React.ReactNode }) {
1313

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

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

0 commit comments

Comments
 (0)