React Component Error Catch

Try-catch only works for imperative code while React components are declarative and specify what should be rendered. The class implements t...