Comment by kall
5 years ago
Are we still taking about vue <template>? I don‘t see how that is any way close to html when it has: custom conditional and loop syntax and semantics, arbitrary js expressions and a unique concept of scope?
5 years ago
Are we still taking about vue <template>? I don‘t see how that is any way close to html when it has: custom conditional and loop syntax and semantics, arbitrary js expressions and a unique concept of scope?
It does have extra non-native features but the overarching
format for single file components is plain HTML which makes it feel closer to vanilla than React.
Yeah I never really understood this benefit. The file structure is irrelevant to me after 15 minutes, the nitty-gritty semantics of my code are causing me headaches and bugs forever.
(I like working with all 3 current frontend frameworks btw, not trying to start a flamewar)
I like it because it separates layout, styling, and scripting while still collating them in the same file.