diff --git a/snippets/link-classname-example.js b/snippets/link-classname-example.js new file mode 100644 index 0000000..ee5c3ae --- /dev/null +++ b/snippets/link-classname-example.js @@ -0,0 +1,17 @@ +// Example: Adding className with +import Link from 'next/link' + +export default function LinkClassnameExample() { + // To add attributes like className, target, rel, etc. + // add them to the tag, not to the tag. + return ( + + + Hello World + + + ) +} + +// Take a look at https://nextjs.org/docs/api-reference/next/link +// to learn more!