---
title: 'No children were passed to ``'
---
> **Note**: Starting with version `16`, Next.js does not support the `legacyBehavior` prop for a `Link` component anymore . `` now renders an `` element automatically, and does not restrict the number of children passed to it.
## Why This Error Occurred
In your application code, `next/link` was used without passing a child:
For example:
```jsx filename="pages/index.js"
import Link from 'next/link'
export default function Home() {
return (
<>
// or
>
)
}
```
## Possible Ways to Fix It
Make sure one child is used when using ``:
```jsx filename="pages/index.js"
import Link from 'next/link'
export default function Home() {
return (
<>
To About
// or
To About
>
)
}
```