Skip to content

Commit

Permalink
docs: Remove extraneous FallbackComponent prop from error boundary do…
Browse files Browse the repository at this point in the history
…cs (#40785)

It looks like the code snippet was copied over from
https://github.com/bvaughn/react-error-boundary but the `ErrorBoundary`
component on this docs page does not have a `FallbackComponent` prop but
renders the error message content itself.


## Documentation / Examples

- [X] Make sure the linting passes by running `pnpm lint`
- [X] The "examples guidelines" are followed from [our contributing
doc](https://github.com/vercel/next.js/blob/canary/contributing/examples/adding-examples.md)
  • Loading branch information
philippbosch committed Sep 22, 2022
1 parent f662f18 commit f16992a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced-features/error-handling.md
Expand Up @@ -88,7 +88,7 @@ import ErrorBoundary from '../components/ErrorBoundary'
function MyApp({ Component, pageProps }) {
return (
// Wrap the Component prop with ErrorBoundary component
<ErrorBoundary FallbackComponent={ErrorFallback}>
<ErrorBoundary>
<Component {...pageProps} />
</ErrorBoundary>
)
Expand Down

0 comments on commit f16992a

Please sign in to comment.