How to handle errors in React
By Matthew Tyson Graceful error handling is an essential aspect of well-designed software. It’s also tricky. This article offers an overview of error handling in React applications and how to use React error boundaries to handle render-time errors. React error typesWe can divide React application errors broadly into two types, and error handling into two aspects. The two React error types: Note that the nature of JavaScript UI makes for tricky error handling. Aside from typical runtime errors, there are errors that spring from the “drawing” of the screen components. We are distinguishing these...