Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions docs/migrating/from-gatsby.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,12 @@ import Link from 'next/link'

export default function Home() {
return (
<Link href="/blog">
<a>blog</a>
</Link>
<Link href="/blog">blog</Link>
)
}
```

Update any import statements, switch `to` to `href`, and add an `<a>` tag as a child of the element.
Update any import statements, switch `to` to `href`. For versions prior to Next.js version 13, add an `<a>` tag as a child of the Link element.

## Data Fetching

Expand Down Expand Up @@ -322,4 +320,4 @@ export default function SEO({ description, title }) {

## Learn more

Take a look at [this pull request](https://github.com/leerob/gatsby-to-nextjs/pull/1) for more details on how an app can be migrated from Gatsby to Next.js. If you have questions or if this guide didn't work for you, feel free to reach out to our community on [GitHub Discussions](https://github.com/vercel/next.js/discussions).
Take a look at [this pull request](https://github.com/leerob/gatsby-to-nextjs/pull/1) for more details on how an app can be migrated from Gatsby to Next.js. If you have questions or if this guide didn't work for you, feel free to reach out to our community on [GitHub Discussions](https://github.com/vercel/next.js/discussions).