Skip to content

Commit 92a431a

Browse files
Fix some typos
1 parent af54fc8 commit 92a431a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/content/reference/react/use.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -351,14 +351,14 @@ But using `await` in a [Server Component](/reference/react/components#server-com
351351
352352
In some cases a Promise passed to `use` could be rejected. You can handle rejected Promises by either:
353353
354-
1. [Displaying an error to users with error boundary.](#displaying-an-error-to-users-with-error-boundary)
354+
1. [Displaying an error to users with an error boundary.](#displaying-an-error-to-users-with-error-boundary)
355355
2. [Providing an alternative value with `Promise.catch`](#providing-an-alternative-value-with-promise-catch)
356356
357357
<Pitfall>
358358
`use` cannot be called in a try-catch block. Instead of a try-catch block [wrap your component in an Error Boundary](#displaying-an-error-to-users-with-error-boundary), or [provide an alternative value to use with the Promise's `.catch` method](#providing-an-alternative-value-with-promise-catch).
359359
</Pitfall>
360360
361-
#### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
361+
#### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
362362
363363
If you'd like to display an error to your users when a Promise is rejected, you can use an [error boundary](/reference/react/Component#catching-rendering-errors-with-an-error-boundary). To use an error boundary, wrap the component where you are calling the `use` Hook in an error boundary. If the Promise passed to `use` is rejected the fallback for the error boundary will be displayed.
364364

src/content/reference/react/useTransition.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1501,7 +1501,7 @@ main {
15011501
15021502
---
15031503
1504-
### Displaying an error to users with a error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
1504+
### Displaying an error to users with an error boundary {/*displaying-an-error-to-users-with-error-boundary*/}
15051505
15061506
<Canary>
15071507

0 commit comments

Comments
 (0)