index.js 287 字节
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
import Link from 'next/link'

export async function getStaticProps() {
  return {
    props: { world: 'nested index' },
  }
}

export default ({ world }) => {
  return (
    <>
      <p>hello {world}</p>
      <Link href="/">
        <a id="home">to home</a>
      </Link>
    </>
  )
}