# pure-render-mixin

> Facebook's PureRenderMixin for React as an isolated module

Latest version **1.0.2** (published 2015-05-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install pure-render-mixin
pnpm add pure-render-mixin
yarn add pure-render-mixin
bun add pure-render-mixin
```

## Health

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

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2015-05-11 |
| First published | 2015-05-10 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 3 |
| Author | Francois Laberge |
| Maintainers | francoislaberge |
| Keywords | react, pure, render, performance, dom |

## Links

- npm: https://www.npmjs.com/package/pure-render-mixin
- Repository: git@github.com:francoislaberge/pure-render-mixin
- Homepage: https://github.com/francoislaberge/pure-render-mixin
- Issues: https://github.com/francoislaberge/pure-render-mixin/issues
- npm.io page: https://npm.io/package/pure-render-mixin

## 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

- 1.0.2 (latest) — 2015-05-11
- 1.0.1 — 2015-05-10
- 1.0.0 — 2015-05-10

## README

# PureRenderMixin
Facebook's PureRenderMixin for React as an isolated module. Read [Facebook's write up](PureRenderMixin) on why this is useful for
increasing react component rendering performance.

# Installation

      npm install pure-render-mixin


# Usage
Instructions taken verbatim from Facebook's [pure-render-mixin page](https://facebook.github.io/react/docs/pure-render-mixin.html).

```js
var PureRenderMixin = require('pure-render-mixin').PureRenderMixin;
React.createClass({
  mixins: [PureRenderMixin],

  render: function() {
    return <div className={this.props.className}>foo</div>;
  }
});
```

For convenience ```shallowCompare``` and ```shallowEqual``` are exported for creating
variants of this implementation for special cases:

```js
var shallowCompare = require('pure-render-mixin').shallowCompare;
```

```js
var shallowEqual = require('pure-render-mixin').shallowEqual;
```

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