Browse Source

[Docs] Fix typo in `ErrorBoundary` docs (#3947)

main
Alonso Holmes 3 years ago
committed by GitHub
parent
commit
91374d36b8
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      content/docs/error-boundaries.md

2
content/docs/error-boundaries.md

@ -62,7 +62,7 @@ Then you can use it as a regular component:
Error boundaries work like a JavaScript `catch {}` block, but for components. Only class components can be error boundaries. In practice, most of the time you’ll want to declare an error boundary component once and use it throughout your application.
Note that **error boundaries only catch errors in the components below them in the tree**. An error boundary can’t catch an error within itself. If an error boundary fails trying to render the error message, the error will propagate to the closest error boundary above it. This, too, is similar to how catch {} block works in JavaScript.
Note that **error boundaries only catch errors in the components below them in the tree**. An error boundary can’t catch an error within itself. If an error boundary fails trying to render the error message, the error will propagate to the closest error boundary above it. This, too, is similar to how the `catch {}` block works in JavaScript.
## Live Demo {#live-demo}

Loading…
Cancel
Save