diff --git a/src/exercise/06.js b/src/exercise/06.js index fd9ff742..01647b9d 100644 --- a/src/exercise/06.js +++ b/src/exercise/06.js @@ -34,7 +34,7 @@ function useToggle({ } = {}) { const {current: initialState} = React.useRef({on: initialOn}) const [state, dispatch] = React.useReducer(reducer, initialState) - // 🐨 determined whether on is controlled and assign that to `onIsControlled` + // 🐨 determine whether on is controlled and assign that to `onIsControlled` // 💰 `controlledOn != null` // 🐨 Replace the next line with assigning `on` to `controlledOn` if