Skip to content

Commit 15f1ba2

Browse files
Erasmus001bvaughn
andauthored
Update README.md (#180)
--------- Co-authored-by: Brian Vaughn <[email protected]>
1 parent ed6d112 commit 15f1ba2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

README.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,12 +20,12 @@ yarn add react-error-boundary
2020
## API
2121

2222
### `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).
2424

2525
> **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.
2626
2727
#### `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.
2929
```js
3030
"use client";
3131

@@ -142,7 +142,7 @@ function Example() {
142142
```
143143

144144
#### 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.
146146

147147
```js
148148
"use client";
@@ -211,4 +211,4 @@ If using Yarn:
211211

212212
---
213213

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

Comments
 (0)