Skip to content

Commit 5ff676b

Browse files
carburomekarthedevsmikitkygaearonTunzeki
authored
Merge pull request #706 from reactjs/sync-3364c93f
* Add missing 'it' (#6061) * 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]> * Fix typo: change "intermedinate" to "indeterminate" (#6062) * Resolve merge conflicts --------- Co-authored-by: Viacheslav Makarov <[email protected]> Co-authored-by: Soichiro Miki <[email protected]> Co-authored-by: dan <[email protected]> Co-authored-by: Tunzeki <[email protected]> Co-authored-by: Rainer Martínez Fraga <[email protected]>
2 parents fd35935 + 5497a05 commit 5ff676b

File tree

2 files changed

+26
-26
lines changed

2 files changed

+26
-26
lines changed

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

Lines changed: 1 addition & 1 deletion
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)