Skip to content

Instantly share code, notes, and snippets.

@arqex
Created September 19, 2015 15:30
Show Gist options
  • Save arqex/be1e96be2ff613690ece to your computer and use it in GitHub Desktop.
Save arqex/be1e96be2ff613690ece to your computer and use it in GitHub Desktop.
var TodoList = React.createClass({
...
shouldComponentUpdate: function( nextProps ){
return nextProps.todos != this.props.todos;
}
...
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment