Higher-Order Component for Error Boundary
Challenge 2 - Medium
Description
Create a Higher-Order Component (HOC) that catches JavaScript errors anywhere in its child component tree and displays a fallback UI.
Objective
Understand HOCs and error handling in React with TypeScript