rsnext/examples/using-preact/pages/index.js
Yuji Matsumoto 629884af7d
Update using-preact example's dependencies (#18493)
- Update Next.js version to 10.0.0
- Update the other dependencies
- Modify `next.config.js` to prevent circular `__self` and `__source`in dev env (ref: https://github.com/developit/nextjs-preact-demo/issues/25)
2020-10-29 22:52:27 +00:00

26 lines
443 B
JavaScript

import Link from 'next/link'
export default function Home() {
return (
<div>
Hello World.{' '}
<ul>
<li>
<Link href="/about">
<a>About</a>
</Link>
</li>
<li>
<Link href="/ssr">
<a>SSR</a>
</Link>
</li>
<li>
<Link href="/ssg">
<a>SSG</a>
</Link>
</li>
</ul>
</div>
)
}