You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/docs/hooks-faq.md
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -479,7 +479,7 @@ We didn't choose `useRef` in this example because an object ref doesn't notify u
479
479
480
480
Note that we pass `[]` as a dependency array to `useCallback`. This ensures that our ref callback doesn't change between the re-renders, and so React won't call it unnecessarily.
481
481
482
-
If you want, you can [extract this logic](https://codesandbox.io/s/m5o42082xy) into a custom reusable Hook with a declarative API:
482
+
If you want, you can [extract this logic](https://codesandbox.io/s/m5o42082xy) into a reusable Hook:
0 commit comments