Add Testimonials to Next.js
Add testimonials to a Next.js site with a client component, or render them on the server from the REST API.
N

How to Embed Testimonials on Next.js
1
In VideoTestimonials, open Studio → Widgets, open (or create) a widget, and copy the code from its Code tab (HTML / Script)
2
Create a 'use client' component that renders the <div data-vt-widget …> and appends embed.js in a useEffect
3
Use the component on any page — or fetch testimonials from the REST API in a Server Component
Why Add Testimonials to Next.js?
A small client component that works with client-side navigation
Server-rendered testimonials through the REST API
Works with the App Router and the Pages Router
