FPS Stats in React
npm install react-fps-statsForked from https://github.com/sebslomski/react-stats, inspired by https://github.com/mrdoob/stats.js.
!FPS
``javascript
import React from "react";
import { render } from "react-dom";
import FPSStats from "react-fps-stats";
const App = () => {
return (
render(
`
Try it on CodeSandbox.
By default, the meter is fixed positioned in the top left of the screen. You can pass the optional props top, right, bottom & left to overrride that positioning. Each prop maps to the css values and can use either string or number format. top and left have values by default, so pass 'auto' as their values if you want to use bottom or right values.
Graph height and the graph width can be set via the graphHeight and graphWidth props.
If you are only using this for development purpose and your users don't need to see it, you can consider using the Chrome Devtools FPS Meter.
This is a tiny library with little activity, no process, just reach out ;)
Publish process
Just a reminder for the maintainer ;)
- run yarn buildpackage.json
- bump version in v__
- commit / push / merge PR
- tag version to create releasenpm publish` from dev host
- add changelog to release note
- run