4 ms·
You'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 f
by emn13 5y ago
You'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?