Use react-error-boundary to handle errors in React
How to simplify your React apps by handling React errors effectively with react-error-boundary