Requirements
- React 18+
This is a dedicated React library — a
LerixProvider component, a
LerixErrorBoundary, and useLerix()/useLerixNotifications() hooks —
built on top of @lerix-dev/lerix-core, the framework-agnostic engine shared by
every Lerix web SDK. Building an Angular app instead? See the
Angular SDK. If you’re using
neither React nor Angular, @lerix-dev/lerix-core also works directly.1. Add the dependency
2. Register the SDK
Wrap your app inLerixProvider, and LerixErrorBoundary to catch render errors:
main.tsx
Find your API key and project ID in the Lerix Dashboard under Project Settings.
Parameters
LerixProvider’s options prop:
3. Verify the integration
UseuseLerix() and throw a test error to confirm everything is working:
You’re all set! Continue to Error Tracking to report custom errors and enable automatic capture, or Push Notifications to enable push delivery.