mediumReact#46

Error boundary component

Prompt

Create an ErrorBoundary class component that catches errors in its child tree. Display a fallback UI with "Something went wrong" and a retry button.

Hints

Solution

Your Code

10 min

Tests

Click Run to test your code