Based on: https://reactjs.org/docs/error-boundaries.html
Error boundaries are React components that catch JavaScript errors anywhere in their child component tree, log those errors, and display a fallback UI instead of the component tree that crashed.
As of React 16, errors that were not caught by any error boundary will result in unmounting of the whole React component tree.
Reagent gives us access to the error boundary features
- Returning true from
:component-did-catch stops
the unmounting behaviour