Skip to content

Instantly share code, notes, and snippets.



Last active Mar 10, 2021
What would you like to do?
Example of adding title to a Next.js page
import Head from 'next/head';
const Index = (): JSX.Element => {
return (
<title>My Page title</title>
<meta property="og:title" content="My page title" key="title" />
<h1>My page title</h1>
export default Index;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment