Code Examples
Copy-paste integration examples for popular frameworks. Each example includes the embed widget setup, postMessage event handling, and notes on backend polling.
React
A React component that wraps the AgeEvidence iframe with postMessage event handling and a loading state.
Next.js
A Next.js App Router integration with a client component for the iframe and an API route for server-side status polling.
Vanilla JavaScript
A plain JavaScript class that creates and manages the AgeEvidence iframe with no framework dependencies.