Created
April 24, 2017 14:36
-
-
Save mushfiqweb/7b3af883d7cf04259758a15ccab11723 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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