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:
Example Project
A fully-working demo project is available as the react-demo
project inside the repository.
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:
Access at http://localhost:3000
Next Steps
- Follow the Setup guide to install this into your project
- Check out the Payer Autocomplete hook
- Learn how the useEligibilityInputField manages the complexity of your form
- Review the Soft Check and Hard Check integration