Skip to content

Commit

Permalink
docs: error bounds reverse
Browse files Browse the repository at this point in the history
  • Loading branch information
drcmda committed Jul 31, 2024
1 parent a6631ff commit 6764937
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/API/canvas.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -85,13 +85,13 @@ import { useErrorBoundary } from 'use-error-boundary'
function App() {
const { ErrorBoundary, didCatch, error } = useErrorBoundary()
return didCatch ? (
<div>{error.message}</div>
) : (
<ErrorBoundary>
<Canvas>
<mesh />
</Canvas>
</ErrorBoundary>
) : (
<div>{error.message}</div>
)
}
```
Expand Down

0 comments on commit 6764937

Please sign in to comment.