react-stats

0.0.5 • Public • Published

React-Stats

React Performance Monitor

Inspired by https://github.com/mrdoob/stats.js

Screenshots

FPS

Usage

'use strict';
 
var React = require('react');
var FPSStats = require('react-stats.jsx').FPSStats;
 
var __DEV__ = true;
 
var Application = React.createClass({
  render: function() {
    return (
        <div>
          <FPSStats isActive={__DEV__} /> // True by default
        </div>
    );
  }
});
 
React.render(
  React.createElement(Application, null),
  document.body
);

Optional Props

By default, the meter is fixed positioned in the bottom right. You can pass the optional props top, right, bottom & left to overrride that positioning. bottom & right have values by default, so pass 'auto' as their values if you want to use left or top values.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.5
    12
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.5
    12
  • 0.0.4
    1
  • 0.0.3
    1
  • 0.0.2
    1

Package Sidebar

Install

npm i react-stats

Weekly Downloads

15

Version

0.0.5

License

none

Last publish

Collaborators

  • sebslomski