DEV Community

Discussion on: Nested Ternary statements in React JSX

Collapse
 
aquasar profile image
Alex Quasar

I think your solutions is more complicated. I prefer the "Don't do this example"
Personally for me, Ternary in ternary is probably okay but if you are going to nest deeper than you probably should be rewriting your code in a nicer way, switch and case statements?