Re:Advice on JSX Conditionals
by 9wzYQbTYsAIc on Wednesday March 09, 2022 @12:16PM
(#30617143)
It’s generally better to go with the idioms of the language, sure, but in this case, the idioms of JSX work well and they are future-proof. If JavaScript adds the support that you are looking for, it would be easy enough for a static code analyzer to rewrite “&&” as “if”
[ Parent
| on HN ]
There are no comments on this comment yet.