React
Install @newtalaria/react 0.6.1, with an ErrorBoundary and React 19 error hooks.
@newtalaria/react 0.6.1 re-exports @newtalaria/browser and adds an ErrorBoundary, React 19 error hooks, a Profiler, and optional React Router instrumentation.
Building Next.js? Install @newtalaria/nextjs instead.
Install#
npm install @newtalaria/reactInitialise#
import { createRoot } from 'react-dom/client';
import { Talaria, ErrorBoundary, reactErrorHandler } from '@newtalaria/react';
Talaria.init({
apiKey: 'tal_pk_prod_nz1_…',
});
const root = createRoot(document.getElementById('root')!, {
onUncaughtError: reactErrorHandler(),
});
root.render(
<ErrorBoundary fallback={<p>Something went wrong.</p>}>
<App />
</ErrorBoundary>,
);The API key decides the environment.
Verify#
Talaria.captureException(new Error('Talaria test error'));Run this once, then open Issues in the dashboard. The test error shows as a new issue in the key's environment. Nothing there? See troubleshooting.
Next#
See configuration, errors, and tracing.