Skip to content

Commit

Permalink
fix(control-props): typo (#129)
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonruesch committed Apr 11, 2024
1 parent 7d1e59d commit a307969
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion exercises/08.control-props/01.problem/toggle.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function toggleReducer(state: ToggleState, action: ToggleAction) {
}

export function useToggle({
// 🐨 add a the `on` and `onChange` options here.
// 🐨 add the `on` and `onChange` options here.
// 💰 you can alias it to `controlledOn` as we do in the Toggle component
// below to avoid "variable shadowing."
initialOn = false,
Expand Down

0 comments on commit a307969

Please sign in to comment.