0.0.6 • Published 7 years ago

react-hover-prefetch v0.0.6

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

react-hover-prefetch · npm

Prefetch data on hover for better perceived performance.

Usage Example

react-hover-prefetch exports a single Prefetch component that fetches data upon mousenter, and invokes the requested action upon click.

There are no extra HTML elements added.

<Prefetch
  prefetch={this.prefetch}
  onClickAction={this.onClick}>
  <button>Click Me!</button>
</Prefetch>

Prefetch manages cases where the user clicks the button before or after the data was prefetched.

Installation

Via npm:

npm install react-hover-prefetch

Via Yarn:

yarn add react-hover-prefetch
0.0.6

7 years ago

0.0.5

7 years ago

0.0.4

7 years ago

0.0.3

7 years ago

0.0.2

7 years ago

0.0.1

7 years ago