What it shouldn't do is create any element (for now we do, but we will show a warning)
The problem is that the current error message is misleading.
These should be possible:
<Link><img /></Link>
<Link><a /></Link>
<Link><a><img /></a></Link>
This should wrap with <a> for now and warn:
<Link>hi</Link>
<Link>{ ' woot' }</Link>
This should throw (dev-only, to ship less code)
https://github.com/zeit/next.js/blob/master/lib/link.js#L73
What it shouldn't do is create any element (for now we do, but we will show a warning)
The problem is that the current error message is misleading.
These should be possible:
This should wrap with
<a>for now and warn:This should throw (dev-only, to ship less code)
https://github.com/zeit/next.js/blob/master/lib/link.js#L73