DisplayName allows you to name your component. This name is used by React in debugging messages.
The following patterns are considered warnings:
var Hello = React.createClass({
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
The following patterns are not considered warnings:
var Hello = React.createClass({
displayName: 'Hello',
render: function() {
return <div>Hello {this.props.name}</div>;
}
});
If you are using JSX this value is already automatically set and it is safe for you to disable this rule.