4 ms·
There’s not any more to learn vs html than jsx. It’s like 5 relevant constructs that all follow the same form, and the colon. Takes 20 minutes to have it down p
by bpicolo 9y ago
There’s not any more to learn vs html than jsx. It’s like 5 relevant constructs that all follow the same form, and the colon. Takes 20 minutes to have it down pat.
v-if is actually a big reason I prefer Vue. Ternary operators in JSX are pretty ugly. The other is that Vuex just feels so perfectly integrated. I've never felt Redux blends in particularly cleanly, though I certainly don't judge people that do prefer it.
- rmrfrmrf 9y agoIf `do { }` syntax makes it into ES9, the whole ternary-operator-hate business will be a moot point
- bpicolo 9y agoThat's alright. I love and appreciate React too, I just prefer Vue now.
- dmitriid 9y agoTernary 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.
- bpicolo 9y agoI'm aware of that bit, I just think they're an ugly piece of control flow inside JSX, and they're also not a particularly versatile piece of control flow. Especially for the else-if case - you end up with repetitive conditionals to replicate that.