Home > @datadog/browser-rum-react > ErrorBoundary
Error Boundary component used to capture runtime errors in the React tree below and report them to Datadog RUM. It renders the fallback
component when an error is caught.
React.Component
Signature:
export declare class ErrorBoundary extends React.Component<Props, State>
Extends: React.Component<Props, State>
Constructor | Modifiers | Description |
---|---|---|
(constructor)(props) | Constructs a new instance of the `ErrorBoundary` class |
Property | Modifiers | Type | Description |
---|---|---|---|
resetError | () => void |
Method | Modifiers | Description |
---|---|---|
componentDidCatch(error, errorInfo) | ||
getDerivedStateFromError(error) | `static` | |
render() |