Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/koss-lebedev/use-fps
https://github.com/koss-lebedev/use-fps
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/koss-lebedev/use-fps
- Owner: koss-lebedev
- Created: 2019-06-11T10:36:11.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-11T10:54:27.000Z (over 5 years ago)
- Last Synced: 2024-10-10T19:09:16.643Z (3 months ago)
- Language: TypeScript
- Size: 3.91 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# use-fps [![version](https://img.shields.io/npm/v/use-fps.svg)](https://www.npmjs.com/package/use-fps) [![minified size](https://img.shields.io/bundlephobia/min/use-fps.svg)](https://www.npmjs.com/package/use-fps) [![minzipped size](https://img.shields.io/bundlephobia/minzip/use-fps.svg)](https://www.npmjs.com/package/use-fps) [![downloads](https://img.shields.io/npm/dt/use-fps.svg)](https://www.npmjs.com/package/use-fps)
React hook for display FPS (frame per second) value. This hook is useful for testing performance of your animations.
## Install
* `npm install use-fps` or
* `yarn add use-fps`## Usage
```js
import useFPS from 'use-fps'const SomeComponent = () => {
const fps = useFPS()return (
{fps}
)
}
```