4 ms·
I think you should swap Vue with React in this take, I'd agree with you 110% if you did that. React is the most over engineered tech I've ever worked with and i
by iKlsR 5y ago
I think you should swap Vue with React in this take, I'd agree with you 110% if you did that. React is the most over engineered tech I've ever worked with and if it weren't for excellent IDE support a la TS etc would be a nightmare to use on a daily basis. Also Vue 3 has great support for TS, 2 not so much. I can't see myself doing any project without Vue, it's literally plug and play and by far easier to grok and use than React.
- emn13 5y agotemplates are still stringly-typed, aren't they? And that whole extra language just for templates is annoying, and unnecessary. I don't want a v-else-if="level ==== 6", because I'm going to make typos, and I want the ability to refactor code in the future without painstakingly reviewing every string in the codebase. How good is the jsx integration in practice? It's there, but the vue docs recommend against it, without going into details of the motivation.
- Already__Taken 5y agoI agree with the template sentiment but it's really hard to defend the webs of ternary operator nests I've seen in jsx Vs v-*
- emn13 5y agoYou're free to use if's instead, if you prefer; that's more similar to v-if's. I agree that ternaries aren't the prettiest of language idioms, but if clearly formatted (e.g. eslint defaults are fine), I think it's mostly a question of getting used to it. I mean, the tricky but also common && and || are almost certainly worse for this, I suppose?