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

Latest commit

 

History

History
34 lines (23 loc) · 701 Bytes

readme.md

File metadata and controls

34 lines (23 loc) · 701 Bytes

DEPRECATED

Use recompose instead.

import { pure } from 'recompose'

const MyComponent = pure(function MyComponent() {
});

stateless-purify

Pure Stateless Components

npm install --save react-purify
# yarn will do as well

Usage

import purify from 'stateless-purify';

const MyComponent = purify(function MyComponent() {
});

Motivation

https://medium.com/modus-create-front-end-development/component-rendering-performance-in-react-df859b474adc#.ycv6d5n8z

Prior Art