Skip to content

Commit 4c61b2f

Browse files
Sunil Paigaearon
Sunil Pai
andauthored
Update content/docs/hooks-faq.md
Co-Authored-By: gaearon <dan.abramov@gmail.com>
1 parent 6a13404 commit 4c61b2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-faq.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,7 @@ We didn't choose `useRef` in this example because an object ref doesn't notify u
479479

480480
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.
481481

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:
483483

484484
```js{2}
485485
function MeasureExample() {

0 commit comments

Comments
 (0)