React Error Boundaries

Error boundaries are React components that catch JavaScript errors anywhere in our app, log those errors, and display a fallback UI.

Code :