Govur University Logo
--> --> --> -->
...

When a special Error Boundary part of your app catches a mistake, which special helper inside it makes sure to *show* a different 'oops!' screen right after the mistake happens?



When a special Error Boundary, which must be a React class component, catches a JavaScript error in a child part of your application, the `static getDerivedStateFromError(error)` lifecycle method is the special helper inside it that makes sure to show a different 'oops!' screen. An Error Boundary is a component designed to catch errors, log them, and display a fallback user interface instead of crashing the entire application. The `static getDerivedStateFromE....

Log in to view the answer



Community Answers

Sign in to open profiles and full community answers.

No community answers yet. Be the first to submit one.

Redundant Elements