Raja Muhammad Asher
Raja Muhammad Asher

Raja Muhammad Asher

What are error boundaries?

Photo by Lautaro Andreani on Unsplash

What are error boundaries?

Raja Muhammad Asher's photo
Raja Muhammad Asher
·Aug 30, 2022·

1 min read

Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed. Error boundaries catch errors during rendering, in lifecycle methods, and in constructors of the whole tree below them.

Sources:

Error Boundaries –. (n.d.). React. reactjs.org/docs/error-boundaries.html

 
Share this