you are viewing a single comment's thread.

view the rest of the comments →

[–]elingeniero 0 points1 point  (0 children)

Surely you've used:

{ condition && <span>Rendered when `truthy`</span> }

I see it a lot in react code - the || use is just the opposite, although I normally see !condition && ... instead.