Add Comments to Your v0 App
Comments, Reactions, and Ratings for Your Next.js App
v0 turns your ideas into a Next.js app. One more prompt gives it a comment section. Hyvor Talk handles the storage, spam, and moderation, so v0 only has to add a component.
Steps to Add Comments to a v0 App
Apps built with v0 use Next.js and React, so the Hyvor Talk React library is the way to go.
Sign up at the Hyvor Talk Console and add a website with your deployed domain. Copy the website ID from Settings → Website.
Add the v0 preview domain at Settings → Website → Allowed Domains, so the comments load while you're still building.
Send this prompt to v0, with your website ID in place of
YOUR_WEBSITE_ID:Add a Hyvor Talk comment section under each blog post. 1. Add the dependency @hyvor/hyvor-talk-react. 2. Create a client component at components/comments.tsx ('use client') that renders: <Comments website-id={YOUR_WEBSITE_ID} page-id={pageId} /> with Comments imported from @hyvor/hyvor-talk-react. 3. Use it at the end of the blog post page and pass the post's slug as pageId. Don't create API routes or database tables for comments.Open a post in the preview to check the comments, then deploy to Vercel.
The code v0 should end up with
If you'd rather add it by hand, or want to check v0's work, the client component looks like this:
'use client';
import { Comments as HyvorComments } from '@hyvor/hyvor-talk-react';
export function Comments({ pageId }: { pageId: string }) {
return <HyvorComments website-id={YOUR_WEBSITE_ID} page-id={pageId} />;
}Then render <Comments pageId={post.slug} /> at the end of your post
page.
That's it. From the Console, you can change the colors to match your app and set up moderation.
Frequently asked questions
Yes. v0 builds Next.js apps with React, and our React library fits right in. The only Next.js detail is that the component needs 'use client', which the prompt asks for.
Pages in the Next.js App Router are Server Components by default. Comments load in the browser, so they live in a small client component. Your post page can stay a Server Component. See our Next.js guide.
The preview runs on a different domain from your deployment. Add that domain to Settings → Website → Allowed Domains in the Console.
No. Hyvor Talk stores comments and users on its side. There's no database, storage, or API route to add to your Vercel project.
Yes. With stateless SSO, a Server Component signs the user data and passes it to the comments, so users skip the Hyvor login. SSO is part of the Business plan.
Threaded comments, reactions, ratings, reply emails, and moderation, plus colors and texts you can change in the Console.
Yes. There's a 14-day free trial, and you don't need a credit card. See pricing.