Add comment to update shouldComponentUpdate

if adding new props
This commit is contained in:
David Baker 2017-09-11 18:30:43 +01:00
parent 47ddc6dedf
commit 3ac154b7da

View file

@ -30,6 +30,8 @@ import VectorConferenceHandler from '../../VectorConferenceHandler';
var LeftPanel = React.createClass({ var LeftPanel = React.createClass({
displayName: 'LeftPanel', displayName: 'LeftPanel',
// NB. If you add props, don't forget to update
// shouldComponentUpdate!
propTypes: { propTypes: {
collapsed: React.PropTypes.bool.isRequired, collapsed: React.PropTypes.bool.isRequired,
}, },