Skip to content

Commit 2f5c135

Browse files
authored
Update exercises/03.use-effect/01.problem.callback/index.tsx
1 parent 4d40b86 commit 2f5c135

File tree

1 file changed

+1
-1
lines changed
  • exercises/03.use-effect/01.problem.callback

1 file changed

+1
-1
lines changed

exercises/03.use-effect/01.problem.callback/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ let hookIndex = 0
1313
const states: Array<[any, (newState: any) => void]> = []
1414
type EffectCallback = () => void
1515
// 🐨 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
16+
// of the "EffectCallback" type we've defined above
1717

1818
function useState<State>(initialState: State) {
1919
const id = hookIndex++

0 commit comments

Comments
 (0)