Skip to content

Instantly share code, notes, and snippets.

@mxro

mxro/index.tsx

Last active Mar 10, 2021
Embed
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 (
<>
<Head>
<title>My Page title</title>
<meta property="og:title" content="My page title" key="title" />
</Head>
<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