Before react 16 established the JavaScript errors were not gracefully handled by react. To find errors of child components deeply from whole tree component or any of the component error boundaries were developed. Error boundaries are the components of react that catch errors or JavaScript errors in child component tree and log all the errors and display through fallback UI. Error boundaries catch errors while rendering in lifecycle methods. https://www.ducatindia.com/javatraining/