Skip to content

Commit e4c9d19

Browse files
authored
Update error-boundaries.md
1 parent 0589024 commit e4c9d19

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

content/docs/error-boundaries.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ Error boundaries are React components that **catch JavaScript errors anywhere in
2020
> * Event handlers ([learn more](#how-about-event-handlers))
2121
> * Asynchronous code (e.g. `setTimeout` or `requestAnimationFrame` callbacks)
2222
> * Server side rendering
23+
> * Errors thrown in the error boundary itself (rather than its children)
2324
2425
A class component becomes an error boundary if it defines a new lifecycle method called `componentDidCatch(error, info)`:
2526

0 commit comments

Comments
 (0)