Skip to content

Instantly share code, notes, and snippets.

@curioussavage
Forked from alexeisavca/ReactIgnore
Last active August 29, 2015 14:15
Show Gist options
  • Select an option

  • Save curioussavage/e99ec8650db75a749f71 to your computer and use it in GitHub Desktop.

Select an option

Save curioussavage/e99ec8650db75a749f71 to your computer and use it in GitHub Desktop.
var React = require('react/addons');
var ReactIgnore = {
displayName: 'ReactIgnore',
shouldComponentUpdate (){
return false;
},
render (){
return React.Children.only(this.props.children);
}
};
module.exports = {
Class: ReactIgnore,
Component: React.createClass(ReactIgnore)
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment