You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -20,12 +20,12 @@ yarn add react-error-boundary
20
20
## API
21
21
22
22
### `ErrorBoundary` component
23
-
Wrap an `ErrorBoundary` around other React components to "catch" errors and render a fallback UI. The component supports several ways to render a fallback (shown below).
23
+
Wrap an `ErrorBoundary`component around other React components to "catch" errors and render a fallback UI. The component supports several ways to render a fallback (as shown below).
24
24
25
25
> **Note**`ErrorBoundary` is a _client_ component. You can only pass props to it that are serializeable or use it in files that have a `"use client";` directive.
26
26
27
27
#### `ErrorBoundary` with `fallback` prop
28
-
The simplest way to render a default "something went wrong" type error message.
28
+
The simplest way to render a default "something went wrong" type of error message.
29
29
```js
30
30
"use client";
31
31
@@ -142,7 +142,7 @@ function Example() {
142
142
```
143
143
144
144
#### Dismiss the nearest error boundary
145
-
A fallback component can use this hook to request the nearest error boundary retry the render that original failed.
145
+
A fallback component can use this hook to request the nearest error boundary retry the render that originally failed.
146
146
147
147
```js
148
148
"use client";
@@ -211,4 +211,4 @@ If using Yarn:
211
211
212
212
---
213
213
214
-
[This blog post](https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react) shows more examples of how this package can be used, although it was written for the [version 3 API](https://github.com/bvaughn/react-error-boundary/releases/tag/v3.1.4).
214
+
[This blog post](https://kentcdodds.com/blog/use-react-error-boundary-to-handle-errors-in-react) shows more examples of how this package can be used, although it was written for the [version 3 API](https://github.com/bvaughn/react-error-boundary/releases/tag/v3.1.4).
0 commit comments