Skip to content
This repository has been archived by the owner on Jun 2, 2019. It is now read-only.

Latest commit

 

History

History
41 lines (26 loc) · 1.17 KB

File metadata and controls

41 lines (26 loc) · 1.17 KB

npm Build Status

For a full description of what this is please refer to the main README file of this project.

Installation

You can install this package with the following command:

npm install react-mixout-pure

API Reference

pure

Provides an implantation of shouldComponentUpdate shallowly checking the equality of next and previous props and context for your mixout.

This is only a tiny feature so, one example is enough.

Example
import mixout from 'react-mixout';
import pure from 'react-mixout-pure';

const Component = props => /* Your everyday component*/ null;

export default mixout(pure)(Component);

Typings

The typescript type definitions are also available and are installed via npm.

License

This project is licensed under the MIT license.