Closed iodimitrov closed 3 years ago
NextLink is a legacy component, that was used for elementRef
prop. Since version 3.0 you should be able to use next Link
component without wrappers:
<Link href="/hello">
<Anchor>Your link</Anchor>
</Link>
Thank you :))
Hi,
When there are children present in the
<NextLink />
component, the linter gives an error that children for the component are not supported.I solved it by adding
React.PropsWithChildren
: