A highly simple library that fetches multiple links at once.
To be used with Next.js only
npm i use-prefetch-linkyarn add use-prefetch-linkimport { usePrefetch } from 'use-link-prefetch'
const Page = () => {
const router = usePrefetch(['/dashboard', '/support'])
return (
<div>
Hello world
</div>
)
}
export default Page