JSX275 Documents

Boolean Attribute

Pass a JSX boolean prop by its presence, such as someAttribute, instead of someAttribute={true}.

Correct

<Component someAttribute />

Incorrect

<Component someAttribute={true} />

Fix

Remove ={true} from boolean JSX attributes and keep the attribute name.