Type-safe way to listen for all exceptions/rejections in the browser and render an optional fallback ui when a fatal error occurs.
The main motivation for this project was to listen to exceptions/rejections outside React and optionally provide a fallback ui to prevent a user from proceeding further with the app in a fatal state.
Note - This can be used in any application, but React is a prime example to showcase the listeners usage when a fatal error occurs outside its render tree.