Building effective Error Boundaries in React.
Published in
5 min readFeb 4, 2022
Error Boundaries were introduced in React 16, as a tool to capture errors that otherwise would bubble up to crash the entire app. We can wrap these errors in a fallback UI that provides some useful feedback to the user of what may have gone wrong, or at the very least a way out of the current error such as a page reload or link elsewhere.