MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/reactjs/comments/f86l9f/beginner_requesting_a_code_review_and_advice/fileno7/?context=3
r/reactjs • u/[deleted] • Feb 23 '20
[deleted] — view deleted post
25 comments sorted by
View all comments
Show parent comment
2
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/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.