Skip to content

Commit 8c733a0

Browse files
author
Michael Oberegger
authored
docs: update README to used named export for ErrorBoundary (#49)
1 parent b032513 commit 8c733a0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ that may throw an error. This will handle errors thrown by that component and
6060
its descendants too.
6161

6262
```jsx
63-
import ErrorBoundary from 'react-error-boundary'
63+
import {ErrorBoundary} from 'react-error-boundary'
6464

6565
function ErrorFallback({error, componentStack}) {
6666
return (
@@ -82,7 +82,7 @@ const ui = (
8282
You can react to errors (e.g. for logging) by providing an `onError` callback:
8383

8484
```jsx
85-
import ErrorBoundary from 'react-error-boundary'
85+
import {ErrorBoundary} from 'react-error-boundary'
8686

8787
const myErrorHandler = (error: Error, componentStack: string) => {
8888
// Do something with the error

0 commit comments

Comments
 (0)