Skip to content

NGuldager/react-pure-render-ignore-functions

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-pure-render-ignore-functions

PureRenderMixin for react.js that ignores functions when comparing state and props. Available both as a mixin and a ES7 decorator.

#Installation npm install react-pure-render-ignore-functions react-addons-shallow-compare

#Usage As a mixin:

var PureRenderIgnoreFunctionsMixin = require("react-pure-render-ignore-functions");

React.createClass({
    mixins: [PureRenderIgnoreFunctionsMixin]
})

As a decorator:

var PureRenderIgnoreFunctionsDecorator = require("react-pure-render-ignore-functions/decorator");

@PureRenderIgnoreFunctionsDecorator
class comp extends React.Component {}

About

PureRenderMixin for react.js that ignores functions when comparing

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •