How to add utterances comments widget on a react application
Hi flocks, in this post I will discus about utterances comments widget. I will describe it's uses on a react application. Now keep claim and read this post carefully. All the best for your new leasson.
What are Utterances?
Utterances is a lightweight comments widget built on GitHub issues. It use github issues for comments. It's an open source project, no tracking, no ads and always free. It's easy to use on a web application for blog site, getting user opinion, personal portfolio etc.
export async function GET(request: Request) {
// Read headers
const token = await getToken(request.headers);
// Set cookies
return new Response('Hello, Next.js!', {
status: 200,
headers: { 'Set-Cookie': `token=${token.value}` },
});
Comments