# react-only-update-on-change

> Implementation of React components' shouldComponentUpdate for stateful and propful components.

Latest version **0.0.1** (published 2014-08-01) · MIT license · 0 weekly downloads

## Install

```sh
npm install react-only-update-on-change
pnpm add react-only-update-on-change
yarn add react-only-update-on-change
bun add react-only-update-on-change
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.1 |
| Published | 2014-08-01 |
| First published | 2014-08-01 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 (+5 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Elie Rotenberg |
| Maintainers | elie.rotenberg |
| Keywords | react, shouldComponentUpdate |

## Links

- npm: https://www.npmjs.com/package/react-only-update-on-change
- Repository: https://github.com/elierotenberg/react-only-update-on-change
- Issues: https://github.com/elierotenberg/react-only-update-on-change/issues
- npm.io page: https://npm.io/package/react-only-update-on-change

## Dependencies (1)

- [lodash](https://npm.io/package/lodash.md) ^2.4.1

## 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.1 (latest) — 2014-08-01
- 0.0.0 — 2014-08-01

## README

react-only-update-on-change
========================

Implementation of [React](http://facebook.github.io/react/index.html) components' [`shouldComponentUpdate`](http://facebook.github.io/react/docs/component-specs.html#updating-shouldcomponentupdate) for stateful and propful components.
When using this implementation as a components' `shouldComponentUpdate`, it will only re-render upon state and/or prop change (shallow comparison).

Usage
=====

```jsx
/** @jsx React.DOM */
var React = require("react");

var MyComponent = React.createClass({
	/* ... */
	shouldComponentUpdate: require("react-only-update-on-change"),
	/* ... */
});
/* ... */
```

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