Skip to content

[Integrations / React]

Testimonial Components for React Apps

Embed a testimonial widget in any React project. No npm package to install, just an iframe or script tag.Start freeFree plan, no card

[01 / Steps]

How it works

  1. Create a collection

    Sign up, create a testimonial collection, and choose a layout.

  2. Copy the embed code

    Grab the script tag or iframe snippet from your dashboard.

  3. Add it to your component

    Paste the iframe into any JSX file. For the script approach, load it in a useEffect or via next/script.

[Two options: an iframe or the script tag]

// Option A: iframe (simplest)
export function Testimonials() {
  return (
    <iframe
      src="https://testimoniq.com/YOUR_COLLECTION_SLUG/widget?embed=true"
      style={{ width: '100%', border: 'none', minHeight: 400 }}
      title="Testimonials"
    />
  );
}

// Option B: script tag via next/script (auto-resizes to fit)
import Script from 'next/script';

export function Testimonials() {
  return (
    <>
      <div id="testimoniq-widget" />
      <Script
        src="https://testimoniq.com/embed.js"
        data-collection="YOUR_COLLECTION_SLUG"
        strategy="lazyOnload"
      />
    </>
  );
}

[Scroll the snippet sideways]

[Rendered output] What visitors see after you paste it. Example content.

“We used to gather quotes by email and lose half of them in threads. One link now, and submissions land in a single queue we can approve from.”
Photo of Sarah Kim

Sarah Kim

“The embed was straightforward: one script tag in our Next.js app, dark mode worked out of the box, and the layout stayed responsive.”
Photo of Marcus Chen

Marcus Chen

“I run a small agency and keep a separate collection per client. Naming and filters mean we are not mixing one brand’s quotes with another’s.”
Photo of Priya Patel

Priya Patel

[02 / Included]

What you get

  • Works with React, Next.js, Remix, Gatsby, and Vite
  • Embed via iframe or script tag, no npm dependency
  • Video & text testimonials
  • 11 responsive layouts
  • Auto-resize to fit container width
  • SSR-friendly, renders in any environment

[03 / Elsewhere]

Other integrations

Ship social proof in your next deploy

Free plan available. No credit card required.