Default Fallback

When no custom fallback is provided, the ErrorBoundary renders its built-in error UI.

This component is working normally. Click the button to trigger an error.

Custom Fallback

Pass a custom fallback prop to display your own error UI.

This component is working normally. Click the button to trigger an error.