Official docs: https://reactjs.org/docs/error-boundaries.html#new-behavior-for-uncaught-errors
- Error Boundaries does not catch errors for Event handlers, Asynchronous code (for ex. setTimeout), Server-side rendering.
- Error boundaries do not catch errors for Errors thrown in the error boundary itself.
Hooks not supported yet for Error boundaries: https://reactjs.org/docs/hooks-faq.html#do-hooks-cover-all-use-cases-for-classes