Skip to content

Commit 1bb69c6

Browse files
committed
docs: minor improvements
1 parent 1ad2b5d commit 1bb69c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/plugins/eslint-plugin-react-hooks-extra/src/rules/no-direct-set-state-in-use-effect.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const fullName = firstName + " " + lastName;
5050

5151
The rule **does not flag** indirect calls, such as:
5252

53-
- Inside `event` handlers.
53+
- Inside event handlers.
5454
- Inside `async` functions.
5555
- Inside `setTimeout`, `setInterval`, `Promise.then`, etc.
5656

@@ -147,7 +147,7 @@ export default function RemoteContent() {
147147
If you need to fetch remote data within the component, consider using libraries like [TanStack Query](https://tanstack.com/query/v3/) or [SWR](https://swr.vercel.app/). They handle caching, re-fetching, and state management for you, making your code cleaner and more efficient.
148148
</Callout>
149149

150-
The following examples are derived from the [React documentation](https://react.dev/learn/you-might-not-need-an-effect):
150+
The following examples are derived from the [React Docs: You Might Not Need an Effect](https://react.dev/learn/you-might-not-need-an-effect):
151151

152152
### Failing
153153

0 commit comments

Comments
 (0)