Last active
June 9, 2021 06:08
-
-
Save akellbl4/aa2b0585a0e94f539ffcb57fe39f5322 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Link from 'next/link' | |
// Before | |
function MyComponent() { | |
return ( | |
<Link href="/posts/[post]" as="/posts/blog-post"> | |
Blog post | |
</Link> | |
) | |
} | |
// Since v10.x | |
function MyComponent() { | |
return <Link href="/posts/blog-post">Blog post</Link> | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment