jsx-use-if-tag should handle AND operator
draperunner opened this issue · 0 comments
draperunner commented
Instead of the ternary operator
foo ? <div/> : null
The &&-operator is often used to achieve the same thing
foo && <div/>
Therefore I think this rule should consider the latter a warning.