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