Skip to content

Commit 8541292

Browse files
fix formatting
1 parent b9eab90 commit 8541292

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/reference/react/useRef.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -665,7 +665,7 @@ export default function ReactLogo() {
665665
666666
To avoid unnecessary reconnections wrap your ref callback function in [useCallback](/reference/react/useCallback). Make sure to add any dependancies to the `useCallback` dependency array. This will ensure the ref callback is called with updated props when necessary.
667667
668-
```js
668+
```js {2,4}
669669
export default function ReactLogo() {
670670
const setLogoRef = useCallback((node) => {
671671
//....

0 commit comments

Comments
 (0)