We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4d40b86 commit 2f5c135Copy full SHA for 2f5c135
exercises/03.use-effect/01.problem.callback/index.tsx
@@ -13,7 +13,7 @@ let hookIndex = 0
13
const states: Array<[any, (newState: any) => void]> = []
14
type EffectCallback = () => void
15
// 🐨 make a variable called "effects" that's an array of objects with a callback property
16
-// of the "EffectCallback" type we've defined on line 14 above
+// of the "EffectCallback" type we've defined above
17
18
function useState<State>(initialState: State) {
19
const id = hookIndex++
0 commit comments