Error Boundary Creator
Instructions
When implementing error handling:
- Identify error-prone areas (async operations, third-party integrations)
- Create appropriate error boundaries
- Design fallback UIs
- Set up error reporting
Basic Error Boundary
'use client';
import { Component, ErrorInfo, ReactNode } from 'react';
interface Props {
children: ReactNode;
fallback?: ReactNode;
}
interface State {
hasError: boolean;
error?: Error;
}
export cla
[Description truncada. Veja o README completo no GitHub.]