MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/f86l9f/beginner_requesting_a_code_review_and_advice/fikhr3s/
r/reactjs • u/[deleted] • Feb 23 '20
[deleted] — view deleted post
25 comments sorted by
View all comments
Show parent comment
2
Nested ternaries are fine. There was no reasoning provided with the feedback so I would disregard.
2 u/folkrav Feb 23 '20 edited Feb 24 '20 Nested ternaries come with a bunch of gotchas depending on the language and get very unreadable very quickly. They're usually very clever, and clever code is rarely good code.They can be fine, they seldom end up being so.
Nested ternaries come with a bunch of gotchas depending on the language and get very unreadable very quickly. They're usually very clever, and clever code is rarely good code.
They can be fine, they seldom end up being so.
View all comments
Show parent comment
2
u/cant_have_nicethings Feb 23 '20
Nested ternaries are fine. There was no reasoning provided with the feedback so I would disregard.