From b404ff0536cf6024551f9c5c826a9176b71640c9 Mon Sep 17 00:00:00 2001 From: Stijn Geens Date: Mon, 26 Oct 2020 19:06:54 +0100 Subject: [PATCH] Fix typo in exercise 6 --- src/exercise/06.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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