mirror of
https://github.com/vercel/next-learn.git
synced 2026-06-11 09:51:47 +00:00
14 lines
332 B
JavaScript
14 lines
332 B
JavaScript
// Example: Adding className with <Link>
|
|
import Link from 'next/link';
|
|
|
|
export default function LinkClassnameExample() {
|
|
return (
|
|
<Link href="/" className="foo" target="_blank" rel="noopener noreferrer">
|
|
Hello World
|
|
</Link>
|
|
);
|
|
}
|
|
|
|
// Take a look at https://nextjs.org/docs/api-reference/next/link
|
|
// to learn more!
|