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

/use-fps/

    Package Sidebar

    Install

    npm i use-fps

    Weekly Downloads

    2

    Version

    0.0.2

    License

    MIT

    Unpacked Size

    5.61 kB

    Total Files

    8

    Last publish

    Collaborators

    • koss-lebedev