3 ms·
I 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-*
by Already__Taken 5y ago
I 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?