# IHF React Adapter `static/js/ihf-react-adapter.js` provides three exports that let React components participate in the IHF widget protocol: | Export | What it does | |------------------------|---------------------------------------------------------| | `useWidgetEnvelope` | Hook — returns `data-*` props for the envelope | | `withWidgetEnvelope` | HOC — wraps a component with the envelope div | | `useInteractionReporter` | Hook — returns `reportEvent(type)` for API submission | The adapter conforms to: - **EnvelopeEmissionContract v1.0** — emits `data-widget-id`, `data-view-context`, `data-hub-id` - **InteractionReportingContract v1.0** — POSTs to `/api/v1/interaction-events` with Bearer auth No build toolchain is added to the IHP project. Consumers bundle this file themselves (webpack, vite, esbuild, etc.) or load it via `