Wrapping multilines JSX in parentheses can improve readability and/or convenience.
The following patterns are considered warnings:
var Hello = React.createClass({
render: function() {
return <div>
<p>Hello {this.props.name}</p>
</div>;
}
});
The following patterns are not considered warnings:
var singleLineJSX = <p>Hello</p>
var Hello = React.createClass({
render: function() {
return (
<div>
<p>Hello {this.props.name}</p>
</div>
);
}
});