#How can I manage Link with Next 13
4 messages · Page 1 of 1 (latest)
create a wrapper const NextLink = ({ children }) => <Link><span>{children}</span></Link>
Will I have to pass this wrapper in component prop?
I suppose so
4 messages · Page 1 of 1 (latest)
Getting below an error on next export. Its working fine with normal next dev and serve.
Error: React.Children.only expected to receive a single React element child.
<Menu.Item
icon={<EditCircle size={14} />}
component={Link}
href={example.com}>Test</Menu.Item>
Any idea? How can I use Link with Menu Item?
create a wrapper const NextLink = ({ children }) => <Link><span>{children}</span></Link>
Will I have to pass this wrapper in component prop?
I suppose so