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

iddan/stateless-purify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

Releases

No releases published

Packages

No packages published