4 ms·
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
by kall 5y 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?
- Drew_ 5y agoIt does have extra non-native features but the overarching <template /> <script /> <style /> format for single file components is plain HTML which makes it feel closer to vanilla than React.
- kall 5y agoYeah 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)
- Drew_ 5y agoI like it because it separates layout, styling, and scripting while still collating them in the same file.