TellProvider, then use hooks for tracking.
@tell-rs/react is a thin wrapper around the browser SDK. It connects Tell to React’s component lifecycle — the provider calls configure() on mount and close() on unmount. You install @tell-rs/browser alongside because that’s where the actual tracking, sessions, and transport live.Setup
With redaction
Hooks
| Hook | Returns | Notes |
|---|---|---|
useTell() | Full browser SDK instance | For advanced use cases |
useTrack() | (event, properties?) => void | Stable ref, safe for dependency arrays |
useIdentify() | (userId, traits?) => void | Stable ref, safe for dependency arrays |
Direct access
For code outside of React components (utilities, background tasks):What you get from the browser SDK
All features documented in the browser SDK guide are available — sessions, device context, super properties, structured logging, opt-out, andbeforeSend hooks. The React package only adds lifecycle integration and hooks.