Skip to content

Commit 7639a38

Browse files
committed
tweaks
1 parent ccd9975 commit 7639a38

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

content/docs/hooks-reference.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Note that `useRef()` is useful for more than the `ref` attribute. It's [handy fo
360360

361361
>Tip
362362
>
363-
>React guarantees that ref object identity (not its `current` prop) is stable and won't change on re-renders. This is why it's safe to omit from the `useEffect` or `useCallback` dependency list.
363+
>React guarantees that ref object identity (but not its `current` property) is stable and won't change on re-renders. This is why it's safe to omit from the `useEffect` or `useCallback` dependency list.
364364
>
365365
>Also keep in mind that *including* `ref.current` list in the dependency list is usually a mistake because `ref.current` changes *after* rendering. If you want to re-run some code whenever a ref changes, you might want to use the function `ref={callback}` API instead.
366366

0 commit comments

Comments
 (0)