Please describe the origin of the rule here.
This rule checks whether the first property of all JSX elements is correctly placed. There are the possible configurations:
always
: The className attribute does not allow object expressionsnever
: The className attribute does allow object expressions
Examples of incorrect code for this rule:
'<div className="{}"/>',
'<div className={"test"}/>',
'<div className="test"/>',
'<div className={this.getClassName()}/>'
Examples of correct code for this rule:
'<div className={{fontSize: \'12px\'}}/>'