import Link from 'next/link';
import MaterialIcon from 'material-icons-react';
const Header = (props) => {
return (
<nav>
<ul>
{navOptions.map(nav => (
<li>
<Link href={nav.url}>
<a>
<MaterialIcon icon={nav.icon} />
<span key={nav.icon}>{nav.name}</span>
</a>
</Link>
</li>
))}
</ul>
</nav>
)
}
export default Header;
The above code generates the following error:
I think I need a loader, but I can not figure out which one.