We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b032513 commit 8c733a0Copy full SHA for 8c733a0
README.md
@@ -60,7 +60,7 @@ that may throw an error. This will handle errors thrown by that component and
60
its descendants too.
61
62
```jsx
63
-import ErrorBoundary from 'react-error-boundary'
+import {ErrorBoundary} from 'react-error-boundary'
64
65
function ErrorFallback({error, componentStack}) {
66
return (
@@ -82,7 +82,7 @@ const ui = (
82
You can react to errors (e.g. for logging) by providing an `onError` callback:
83
84
85
86
87
const myErrorHandler = (error: Error, componentStack: string) => {
88
// Do something with the error
0 commit comments