Skip to content

Commit 398ace5

Browse files
authored
Add missing 'it' (#6061)
1 parent 1b5e886 commit 398ace5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)