Nothing Particularly Magnificent
Have ideas to improve npm?Join in the discussion! »

use-fps

0.0.2 • Public • Published

use-fps version minified size minzipped size downloads

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

import useFPS from 'use-fps'
 
const SomeComponent = () => {
  const fps = useFPS()
 
  return (
    <div>{fps}</div>
  )
}

Keywords

none

Install

npm i use-fps

DownloadsWeekly Downloads

2

Version

0.0.2

License

MIT

Unpacked Size

5.61 kB

Total Files

8

Last publish

Collaborators

  • avatar