|
|
|
|
|
by unsupp0rted
1242 days ago
|
|
> I think the concept of JSX (write your HTML with JS) is good as it gives you a real language instead of a restricted templating DSL. I never got this reasoning. In Vue the idea is: * Write html templates in HTML * Call javascript from the template to do javascript things (i.e. computed properties and methods) This has always made the most sense to me, conceptually. Sure Vue gives you a DSL for looping template elements (v-for) or showing template elements (v-if), but almost all the typical javascript action happens inside typical javascript calls. |
|
It eliminates entire classes of human errors.