|
|
|
|
|
by dmitriid
3104 days ago
|
|
Ternary operators in JSX are valid javascript expressions. As is anything that goes into {} All of the following is neither Javascript nor HTML: v-for=”x in list”
v-if=”conditional”
v-on:click=“function”
v-bind:key=“something.id”
etc. etc. etc. |
|
Especially for the else-if case - you end up with repetitive conditionals to replicate that.