1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/test/integration/production/pages/prefetch.js
Tim Neutkens cad19c808c
Use <link rel=“prefetch”> for prefetching (#5737)
* Use <link rel=“prefetch”> for prefetching

Fixes #5734

* Fix unit tests for router

* Add test for prefetch

* Rename test

* Check all logs for message
2018-11-25 00:47:39 +01:00

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>
}