Next JS - using Link

0 votes
228 views
added Mar 4, 2019 in Next JS by LC Marshal Captain (25,790 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, 2019 by LC Marshal Captain (25,790 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.
...