InterviewBuddy
All interview questions

What is the purpose of an error boundary?

Intermediate

Answer

An error boundary displays fallback UI when a descendant throws during rendering. It does not catch every event-handler or asynchronous error.