React breaks up our UI into separate, reusable components which makes organizing code much easier. However, if one of those components breaks, it crashes the rest of your UI. ErrorBoundary components catch errors in any of their children components allowing you to replace a broken child component with any code you want.
In this screencast, we'll show you how to build a React ErrorBoundary component that will help keep your UI working even when there are errors.
For the More Curious...
Production - Create React App
Why production is faster than development
More info on componentDidCatch
BNR Guide to Front-End Web Development
Full Stack Courses