Skip to content

Commit 945b6e8

Browse files
authored
docs: minor improvements (#1215)
1 parent 403a7c9 commit 945b6e8

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
@@ -54,7 +54,7 @@ const fullName = firstName + " " + lastName;
5454

5555
The rule **does not flag** indirect calls, such as:
5656

57-
- Inside `event` handlers.
57+
- Inside event handlers.
5858
- Inside `async` functions.
5959
- Inside `setTimeout`, `setInterval`, `Promise.then`, etc.
6060

@@ -151,7 +151,7 @@ export default function RemoteContent() {
151151
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.
152152
</Callout>
153153

154-
The following examples are derived from the [React documentation](https://react.dev/learn/you-might-not-need-an-effect):
154+
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):
155155

156156
### Failing
157157

0 commit comments

Comments
 (0)