Skip to content

Commit 09185bc

Browse files
smikitkygaearon
andauthored
Fix a wrong explanation in "Manipulating the DOM with Refs" (#6055)
* Fix manipulating-the-dom-with-refs * Update manipulating-the-dom-with-refs.md --------- Co-authored-by: dan <[email protected]>
1 parent 398ace5 commit 09185bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/content/learn/manipulating-the-dom-with-refs.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Then, use it to declare a ref inside your component:
3131
const myRef = useRef(null);
3232
```
3333

34-
Finally, pass it to the DOM node as the `ref` attribute:
34+
Finally, pass your ref as the `ref` attribute to the JSX tag for which you want to get the DOM node:
3535

3636
```js
3737
<div ref={myRef}>

0 commit comments

Comments
 (0)