Skip to content

Commit

Permalink
Merge pull request #706 from reactjs/sync-3364c93f
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
5 people authored May 29, 2023
2 parents fd35935 + 5497a05 commit 5ff676b
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 26 deletions.
2 changes: 1 addition & 1 deletion src/content/learn/manipulating-the-dom-with-refs.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ Then, use it to declare a ref inside your component:
const myRef = useRef(null);
```

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

```js
<div ref={myRef}>
Expand Down
Loading

0 comments on commit 5ff676b

Please sign in to comment.