Are you first timer at lazacode.org? Why not join us and start exchange your programming knowledge with everyone. Register today!

Next JS - using Link

0 votes
3 views
added Mar 4 in Next JS by LC Marshal Lieutenant (16,990 points)
// API link
import Link from 'next/link'

const Index = () => (
  <div>
    <Link href="/about-us">
      <a>About Us</a>
    </Link>
    <p>Content goes here</p>
  </div>
)

export default Index

 

1 Response

0 votes
responded Mar 4 by LC Marshal Lieutenant (16,990 points)

Style for link

<Link href="/about-us">
  <a style={{ fontSize: 20 }}>About Us</a>
</Link>

 

lazacode.org - Malaysia's programming knowledge sharing platform, where everyone can share their finding as reference to others.
...