mirror of
https://github.com/reactjs/react.dev.git
synced 2026-02-21 19:31:57 +00:00
docs: fix react-hooks/exhaustive-dependencies typo (#5605)
The rule is `exhaustive-deps`, not `exhaustive-dependencies`. Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
This commit is contained in:
@@ -748,7 +748,7 @@ If you have an existing codebase, you might have some Effects that suppress the
|
||||
useEffect(() => {
|
||||
// ...
|
||||
// 🔴 Avoid suppressing the linter like this:
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
```
|
||||
|
||||
|
||||
@@ -285,7 +285,7 @@ If you have an existing codebase, you might have some Effects that suppress the
|
||||
useEffect(() => {
|
||||
// ...
|
||||
// 🔴 Avoid suppressing the linter like this:
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
```
|
||||
|
||||
|
||||
@@ -1130,7 +1130,7 @@ If you have an existing codebase, you might have some Effects that suppress the
|
||||
useEffect(() => {
|
||||
// ...
|
||||
// 🔴 Avoid suppressing the linter like this:
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-dependencies
|
||||
// eslint-ignore-next-line react-hooks/exhaustive-deps
|
||||
}, []);
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user