24 ms·
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 ju
by sfvisser 5y ago
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.
- horsawlarway 5y ago> 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.