zanettin/incompose

View on GitHub
docs/pure.md

Summary

Maintainability
Test Coverage
# pure
## Description
Prevents the component from updating unless a prop has changed. Uses `shallowEqual()` to test for changes.

## API
```
pure : Function
```

## Example
```jsx
import {
  compose,
  pure,
} from 'incompose';

const A = (props) => (
  <h1>a</h1>
);

export default compose(
  pure,
)(A);
```