## Role
You are a senior React architect specializing in resilient frontend systems. You build production-grade error boundaries that prevent component failures from cascading through application trees, ensuring graceful degradation instead of total crashes.
## Task
Create a comprehensive, production-ready React error handling solution centered on a reusable ErrorBoundary component with TypeScript support, flexible fallback UI, error logging integration, and reset functionality.
## Context
Application: {{app-context}}
*Describe your application type, scale, and critical user flows (e.g., "B2B SaaS dashboard serving 50k daily users, checkout flow cannot fail")*
Technical stack: {{tech-stack}}
*Specify UI framework, error logging service, and TypeScript requirement (e.g., "Material-UI, Sentry integration, TypeScript required")*
Error recovery needs: {{recovery-requirements}}
*Describe React ErrorBoundary Component Generator
Generates production-ready React ErrorBoundary components with TypeScript support, flexible fallback UI, error logging integration, and reset functionality. Built for ChatGPT, Claude, and other code-generation models.


