1.1.3 • Published 9 months ago

use-count v1.1.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

use-count

CI Status

React Hook to use realtime countapi.xyz data and display it in your application.

Features

  • 📦 Tiny: use-count weighs in at less than 6.71 KB minified and gzipped.
  • 🌳 Universal: we dist esm and cjs modules.
  • 👨‍💻 Developer friendly: Helpful development messages that are stripped away in production
  • ⌨️ Strongly typed: use-count is written in TypeScript and encourages good practices this way

Installation

With NPM

npm i --save use-count

Or, with yarn:

yarn add use-count

Usage

import { useCount } from 'use-count';

const App = () => {
  const { value: hits } = useCount('namespace', 'key');

  return <p>{hits}</p>;
};
0.6.7

11 months ago

0.6.6

11 months ago

0.6.9

11 months ago

0.6.8

11 months ago

1.1.3

9 months ago

1.1.2

9 months ago

0.7.2

11 months ago

0.6.3

11 months ago

0.7.1

11 months ago

0.6.2

11 months ago

0.6.5

11 months ago

0.7.3

11 months ago

0.6.4

11 months ago

0.7.0

11 months ago

0.6.1

2 years ago