4 ms·
And Vue's weird, non-standard quasi-template attributes don't?
by robertoandred 7y ago
And Vue's weird, non-standard quasi-template attributes don't?
- ysavir 7y agoNot at all. Vue's templating (and angular's) is essentially extended HTML--you're writing HTML _as HTML_, using HTML's native practices (element attributes) to hook into the JS. I disliked this when I first used Angular, but after adjusting to it I've found that it's highly respectful of HTML's design patterns, the opposite of a hack.
- makkesk8 7y agoThey're not really a hack since javascript does support custom attributes. Jsx is not supported out of the box by javascript and jsx extends the syntax, so what does actually feel more of a hack? ```const element = <h1>Hello, world!</h1>;``` How is this less of a hack compared to vue's attributes?