Closed dfrese closed 5 years ago
React introduced the 'error boundary', via a class method "componentDidCatch". This is very handy and there should be a Reacl feature to support something similar/the same; via that method, or something else.
React 17 has already deprecated the api and split it into two, componentDidCatch and getDerivedStateFromError :-/
https://reactjs.org/docs/react-component.html#componentdidcatch
React introduced the 'error boundary', via a class method "componentDidCatch". This is very handy and there should be a Reacl feature to support something similar/the same; via that method, or something else.