Skip to content

Dependencies/react-fps-stats

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

React FPS Stats

Graphics Performance Monitor for React

Forked from https://github.com/sebslomski/react-stats, inspired by https://github.com/mrdoob/stats.js.

Screenshots

FPS

Usage

import React, { Component } from "react";
import { render } from "react-dom";
import FPSStats from "react-fps-stats";

const Application = () => {
  return (
    <div>
      <FPSStats />
    </div>
  );
};

render(<Application />, document.body);

Optional Props

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.

About

Graphics Performance Monitor for React

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%