Error boundaries help you to catch Javascript error anywhere in the child components. They are most used to log the error and show a fallback UI.