# react-stats

> FPS Stats in React

Latest version **0.0.5** (published 2015-03-31) · 0 weekly downloads

## Install

```sh
npm install react-stats
pnpm add react-stats
yarn add react-stats
bun add react-stats
```

## Health

**Score 10/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; low quality score; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.5 |
| Published | 2015-03-31 |
| First published | 2015-02-23 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Sebastian Slomski |
| Maintainers | sebslomski |
| Keywords | react, stats, react-component |

## Links

- npm: https://www.npmjs.com/package/react-stats
- Repository: https://github.com/sebslomski/react-stats
- Issues: https://github.com/sebslomski/react-stats/issues
- npm.io page: https://npm.io/package/react-stats

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 0.0.5 (latest) — 2015-03-31
- 0.0.4 — 2015-02-25
- 0.0.3 — 2015-02-23
- 0.0.2 — 2015-02-23

## README

# React-Stats

## React Performance Monitor

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

### Screenshots

![FPS](http://i.imgur.com/nqcXluS.png)

### Usage

```javascript
'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.

---
_Source: https://npm.io/package/react-stats · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
