MemotivaComponent Patterns

What is an error boundary?

Component Patterns

Audio flashcard · 0:13

Nortren·

What is an error boundary?

0:13

An error boundary is a class component that catches JavaScript errors anywhere in its child component tree during rendering, in lifecycle methods, and in constructors. It logs the error and displays a fallback UI instead of crashing the whole app.