React / Next.js
Component <TalkmioChat siteKey="…" /> for React, Next.js (App and Pages router), Vite, Remix and Gatsby. SSR-safe — loads the widget once in the browser and identifies the current user.
Download talkmio-react-1.0.0.zip
Install
- Copy
src/index.jsinto your project (or install the package from the zip withnpm install ./talkmio-react). - Render once, e.g. in your root layout:
<TalkmioChat siteKey="YOUR_SITE_KEY" user={{ name, email }} /> - Next.js App Router: put it in a client component (
'use client') included fromapp/layout.js.
Where is my site key? Sign in at app.talkmio.com → Websites, add your website and copy the 12-character key (e.g. 2wkxhgujxwlv). No account yet? Create one free — no card required.