use-link-prefetch
TypeScript icon, indicating that this package has built-in type declarations

0.1.1 • Public • Published

image

use-prefetch-link

A highly simple library that fetches multiple links at once.

To be used with Next.js only

NPM Downloads JavaScript Style Guide Size without zipping License Types included

Installation

npm i use-prefetch-link
yarn add use-prefetch-link

Usage 📖

import { usePrefetch } from 'use-link-prefetch'

const Page = () => {

  const router = usePrefetch(['/dashboard', '/support'])

  return (
    <div>
      Hello world
    </div>
  )
}

export default Page

/use-link-prefetch/

    Package Sidebar

    Install

    npm i use-link-prefetch

    Weekly Downloads

    2

    Version

    0.1.1

    License

    MIT

    Unpacked Size

    5.18 kB

    Total Files

    11

    Last publish

    Collaborators

    • lalit2005