Skip to content

Commit 1363fd6

Browse files
authored
Update README.mdx (#232)
1 parent 85a8025 commit 1363fd6

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

exercises/03.custom-hooks/README.mdx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,10 +165,8 @@ let lastCallback
165165
function useCallback(callback, deps) {
166166
if (depsChanged(deps)) {
167167
lastCallback = callback
168-
return callback
169-
} else {
170-
return lastCallback
171168
}
169+
return lastCallback
172170
}
173171
```
174172

0 commit comments

Comments
 (0)