Implement comprehensive error boundaries with fallback UIs, error reporting, and recovery strategies.
I need to implement error boundaries in my React application. **Application Structure:** - Number of main sections: [X] - Critical components: [list them] - Current error handling: [describe] **Requirements:** - Fallback UI style: [minimal/informative/branded] - Error reporting: [Sentry/custom/console] - Recovery options: [retry/refresh/navigate] **User Experience Goals:** [How should users experience errors] **Code Context:** ```jsx [paste relevant component structure] ``` Please provide: 1. Error boundary class component 2. Custom fallback UI components 3. Error reporting integration 4. Recovery mechanism implementation 5. Granular boundary placement strategy 6. Async error handling with boundaries 7. Testing error boundaries
Or press ⌘C to copy
Replace these placeholders with your own content before using the prompt.
[X]