React — Initialization
Install the React integration and wrap your app with the provider so all components can use Signal.Installation
@signal-js/react includes the browser SDK (@signal-js/browser). You do not need to install @signal-js/browser separately.
Provider setup
Wrap your app withSignalProvider at the root (e.g. in main.tsx or App.tsx). Pass options with your API key and project ID. The endpoint is optional and defaults to https://api.trysignal.ai/.
Provider props
Recording starts automatically when the provider mounts unless
autoStart is false. Use hooks like useSignal() or useSignalCapture() inside any child component to capture events or identify users.
