Answers for "can I use next js link to navigate to external pages"

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 "can I use next js link to navigate to external pages"

Code answers related to "Javascript"

Browse Popular Code Answers by Language