Explain error boundaries ?

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.