4 ms·
You can get around it with a Babel transform: https://www.npmjs.com/package/jsx-control-statements https://www.npmjs.com/package/jsx-control-statements Disclo
by Untit1ed 10y ago
You can get around it with a Babel transform:
https://www.npmjs.com/package/jsx-control-statements https://www.npmjs.com/package/jsx-control-statements
Disclosure: self-promotion. It's really frustrating that I see this React-is-crap-because-no-conditionals come up again and again but if you want them all it takes is an npm install and a line of babel config :(.
- flopsey 10y agoThe article doesn't bash react, but it does say that Vue's ability to use conditionals is superior.