Commit 7eda3bc6 authored by Henrik Wenz's avatar Henrik Wenz Committed by Joe Haddad

Fix invalid href with-tailwindcss example (#8488)

Uncaught (in promise) Error: Invalid href passed to router: https://github.com/zeit/next.js https://err.sh/zeit/next.js/invalid-href-passed
parent f8904828
...@@ -17,9 +17,9 @@ export default function Nav () { ...@@ -17,9 +17,9 @@ export default function Nav () {
<ul className='flex justify-between items-center'> <ul className='flex justify-between items-center'>
{links.map(({ href, label }) => ( {links.map(({ href, label }) => (
<li key={`${href}${label}`} className='ml-4'> <li key={`${href}${label}`} className='ml-4'>
<Link href={href}> <a href={href} className='btn-blue no-underline'>
<a className='btn-blue no-underline'>{label}</a> {label}
</Link> </a>
</li> </li>
))} ))}
</ul> </ul>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment