Installation

The React SDK (@usebridge/sdk-react) provides headless hooks for patient eligibility in your app or website.

Installation

The React SDK requires the Bridge TypeScript API client as a peer dependency:

$npm install @usebridge/api @usebridge/sdk-react

Example project

A fully-working demo is available as react-demo in the repository.

Create a file at examples/react-demo/.env.local:

NEXT_PUBLIC_PUBLISHABLE_KEY="********-****-****-****-************"
NEXT_PUBLIC_BRIDGE_SERVICE_TYPES="svt_****,svt_****"
$yarn install
$yarn dev

Access at http://localhost:3000

Next Steps