From 2101ba05c9a32b47066f5550bedac994883ce216 Mon Sep 17 00:00:00 2001 From: Shu Uesugi Date: Mon, 20 Apr 2020 19:24:10 -0700 Subject: [PATCH] Add a link snippet --- snippets/link-classname-example.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 snippets/link-classname-example.js 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!