News for hackers. Stuff that matters.
Re:The State of JavaScript 2017 by yen223 on Wednesday December 13, 2017 @12:01AM (#15912141)
Not saying that you're wrong, but the docs sure seem to imply that directives are the way to go: https://vuejs.org/v2/guide/index.html#Declarative-Rendering
Re:The State of JavaScript 2017 by wcarron on Wednesday December 13, 2017 @10:49AM (#15914955)
Yeah, that was my own personal opinion prefacing the facts. Vue supports both, but the template system is generally used more in the Vue ecosystem than JSX is. Vue neatly fits between JSX and angular.js' clunky template language. Since the developer can quickly understand that Vue and React are both doing the same thing underneath, he can pick his preferred way to do it (template vs render func). I see in passing that more experienced devs I've worked with prefer the react way at a higher rate than those of less experience do. But mostly, you're right that v-directives are vastly more popular.