DEV Community

Discussion on: Conditional rendering in React - using the ternary operator

Collapse
 
creativesuraj profile image
Suraj Sharma

I would rather use isFirstTrue instead of firstIsTrue to make the variable name sound boolean.

Thanks Silvia for the post!

Collapse
 
arikaturika profile image
Arika O

On a second thought I think I would also go with "isFirstTrue". Hope it helped :).

Collapse
 
creativesuraj profile image
Suraj Sharma

Yes,your articles are helpful.