score:0

i just solved it using head from 'next/head'. i just put:

     <head>
       <title>{title}</title>
     </head>

inside <navlink>, not sure if that's correct but it works.

import link from 'next/link';
import head from 'next/head';

const title = 'title here';

const header = () =>  (
  <container>
    <div1>
      <link href="/">
        <a style={{ display: "flex", alignitems: "center", color: "white", marginbottom: "20px"}}>
        <dicssdeck size="3rem" /> <span>portfolio</span>
        </a>
      </link>
    </div1>
    <div2>
      <li>
        <link href=".#projects" title={title}>
          <navlink>projects
          <head>
           <title>{title}</title>
         </head>
          </navlink>
        </link>
      </li>
      <li>
        <link href=".#tech">
          <navlink>technologies
          <head>
           <title>{title}</title>
         </head>
          </navlink>
        </link>
      </li>
      <li>
..............
..............

Related Query

More Query from same tag