Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Most of these are just "tips on using conditionals" and have very little to do with JSX itself.


True. Also many of these are not actual issues and are just behavior inherent to using JavaScript.

If you don’t like your conditional logic in your template just give them a name and explicit boolean type and be done with it.

Still a useful overview of common idioms though for people who just get started.


> Still a useful overview of common idioms though for people who just get started.

I agree - I just think labeling them as JSX issues is pretty disingenuous. JSX is literally just running them as standard js expressions here - which I actually find delightful: they work the same as they do in normal javascript (quirks included :D ).

The author seems to want something like ng-if="condition", and I find DSLs in this space a real abomination.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: