Answers for "how to add a link to another source to nextjs page"

35

external page link next js

import Link from "next/link";   //import this
     
<Link href="/">    //wrap a tag with Link
     <a>Home</a>
</Link>

<Link href="https://nextjs.org">   //external page
      <a>Next.js</a>
 </Link>
Posted by: Guest on June-25-2021

Code answers related to "how to add a link to another source to nextjs page"

Code answers related to "Javascript"

Browse Popular Code Answers by Language