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>
  )
}

Readme

Keywords

none

Package Sidebar

Install

npm i use-fps

Weekly Downloads

1

Version

0.0.2

License

MIT

Unpacked Size

5.61 kB

Total Files

8

Last publish

Collaborators

  • koss-lebedev