mirror of
https://github.com/terribleplan/next.js.git
synced 2024-01-19 02:48:18 +00:00
cad19c808c
* Use <link rel=“prefetch”> for prefetching Fixes #5734 * Fix unit tests for router * Add test for prefetch * Rename test * Check all logs for message
29 lines
509 B
JavaScript
29 lines
509 B
JavaScript
import Link from 'next/link'
|
|
|
|
export default () => {
|
|
return <div>
|
|
<ul>
|
|
<li>
|
|
<Link href='/' prefetch>
|
|
<a>index</a>
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link href='/process-env' prefetch>
|
|
<a>process env</a>
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link href='/counter' prefetch>
|
|
<a>counter</a>
|
|
</Link>
|
|
</li>
|
|
<li>
|
|
<Link href='/about' prefetch>
|
|
<a>about</a>
|
|
</Link>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
}
|