My Next.js website needs a
<meta name="description" /> HTML tag added to its
Next.js should have a built-in way to do this, correct?
You'll need to import the
next/head component at the top of the page:
import Head from "next/head"
Then you can add a
<Head> component to your page like this:
<Head> <meta name="description" content="Your meta description." /> </Head>
Make sure it's positioned at the top of the
return () method inside your React.js page.