Error boundaries, why they exist, and what they cannot catch
Error boundaries prevent a rendering error in one subtree from crashing the entire visible application tree.
- They catch errors during rendering, lifecycle, and constructors below them
- They do not catch every async error
- They are implemented with class components
Error boundaries, why they exist, and what they cannot catch