Skip to content

Commit 3fd67f8

Browse files
authored
Merge pull request #891 from reactjs/sync-3364c93f
Sync with react.dev @ 3364c93
2 parents 0fc905f + 2ae0065 commit 3fd67f8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
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}>

src/content/reference/react-dom/components/progress.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ To display a progress indicator, render the [built-in browser `<progress>`](http
3535
Additionally, `<progress>` supports these props:
3636

3737
* [`max`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-max): A number. Specifies the maximum `value`. Defaults to `1`.
38-
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value): A number between `0` and `max`, or `null` for intermedinate progress. Specifies how much was done.
38+
* [`value`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/progress#attr-value): A number between `0` and `max`, or `null` for indeterminate progress. Specifies how much was done.
3939

4040
---
4141

src/content/reference/react/useEffect.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1089,7 +1089,7 @@ function ChatRoom({ roomId }) {
10891089
}
10901090
```
10911091
1092-
**To remove a dependency, you need to ["prove" to the linter *doesn't need* to be a dependency.](/learn/removing-effect-dependencies#removing-unnecessary-dependencies)** For example, you can move `serverUrl` out of your component to prove that it's not reactive and won't change on re-renders:
1092+
**To remove a dependency, you need to ["prove" to the linter that it *doesn't need* to be a dependency.](/learn/removing-effect-dependencies#removing-unnecessary-dependencies)** For example, you can move `serverUrl` out of your component to prove that it's not reactive and won't change on re-renders:
10931093
10941094
```js {1,8}
10951095
const serverUrl = 'https://localhost:1234'; // Not a reactive value anymore

0 commit comments

Comments
 (0)