---
title: 'Invalid `` with `` child'
---
## Why This Error Occurred
Starting with Next.js 13, `` renders as ``, so attempting to use `` as a child is invalid.
## Possible Ways to Fix It
Run the `new-link` codemod to automatically upgrade previous versions of Next.js to the new `` usage:
```bash filename="Terminal"
npx @next/codemod new-link .
```
This will change `Home` to `Home`.
Alternatively, you can add the `legacyBehavior` prop `Home`.
## Useful Links
- [next/link](/docs/pages/api-reference/components/link)