0 votes
in ReactJS by
What is the behavior of uncaught errors in react 16?

1 Answer

0 votes
by

In React 16, errors that were not caught by any error boundary will result in unmounting of the whole React component tree. The reason behind this decision is that it is worse to leave corrupted UI in place than to completely remove it. For example, it is worse for a payments app to display a wrong amount than to render nothing.

...