Home > @datadog/browser-rum-react
browser-rum-react package
Datadog Browser RUM React Integration - Additional components and hooks for React applications. Provides React-specific features like Error Boundaries and component performance tracking.
Classes
Class
|
Description
|
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
|
Functions
Function
|
Description
|
addReactError(error, info)
|
Report an error originating from React (Error Boundary or `componentDidCatch`) to Datadog RUM. This helper should not be called directly; prefer to use the ErrorBoundary component or React's error lifecycle.
|
reactPlugin(configuration)
|
Factory returning the react plugin to pass to datadogRum.init({ plugins: [...] }).
The plugin wires React-specific features such as: - ErrorBoundary integration (errors forwarded as RUM \*Error\* events) - Optional react-router view tracking - Component performance tracking utilities (see UNSTABLE_ReactComponentTracker).
|
Variables
Variable
|
Description
|
UNSTABLE_ReactComponentTracker
|
Experimental component that measures the render lifecycle of its children and reports a duration vital named `reactComponentRender`.
|