An error boundary catches errors during rendering, lifecycle methods, and constructors in the child tree below it, then renders fallback UI.
Question 1 of 20 in Error Boundaries Quiz