Commit b66c34ea authored by Jerry Green's avatar Jerry Green Committed by Tim Neutkens

Fix js template to be TS compatible (#9941)

parent a277218d
......@@ -4,10 +4,10 @@ import Link from 'next/link'
const links = [
{ href: 'https://zeit.co/now', label: 'ZEIT' },
{ href: 'https://github.com/zeit/next.js', label: 'GitHub' },
].map(link => {
link.key = `nav-link-${link.href}-${link.label}`
return link
})
].map(link => ({
...link,
key: `nav-link-${link.href}-${link.label}`,
}))
const Nav = () => (
<nav>
......
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