heading-has-content false positive for object spread #980
Open
Description
The code throws an error.
const SectionTitle = (props) => (
<h2 {...props} />
);
However, this code does not throw an error.
const SectionTitle = (props) => (
<h2 {...props} >{props.children}</h2>
);
Both syntaxes produce the same output when rendered, which leads me to believe that the first syntax should not result in an error either.
Metadata
Assignees
Labels
No labels