Installation

Bridge’s React SDK is in beta! Expect breaking changes, bugs, and missing features. Please talk to us before integrating.

Bridge provides a headless React SDK, designed to make working with patient eligibility in your app or website easier.

Features

  • Fully Customizable: Compatible with any UX/UI, Bridge provides state management through React Hooks
  • Soft and Hard Checks: Simplification of the Policy and ServiceEligibility lifecycles, into a single entry point
  • Multiple ServiceTypes: Straightforward handling of multiple ServiceTypes, ProviderTypes, and combination strategies
  • Payer Autocomplete: Bridge handles the complexity of autocompletes, result caching, reduced to a single hook

Installation

The React SDK requires Bridge TypeScript API client as a peer dependency, install both using npm or yarn:

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

Example Project

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

$yarn install

Create and fetch a Publishable API Key from the Bridge Dashboard, and your ServiceType ID’s. Create a file at /examples/react-demo/.env.local, set the following variables:

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

Access at http://localhost:3000

Next Steps