DEV Community

Discussion on: ReactJS Tips & Tricks: Avoid Short-Circuit Conditional UI Rendering

Collapse
 
helderberto profile image
Helder Burato Berto • Edited

You can do that, but personally, I think the ternary is more explicit in that case, and you avoid to do a value conversion before render.