Echo JS 0.11.0

<~>
basically 2985 days ago. link 3 points
Interesting article! I personally prefer the React way for serveral reasons. What hinders me to give vue a try is the seperation of HTML and JS. In Vue (it seems) you have to use a CSS selector to wire things together ("#journal" in the example).

Everyone should use what fits them best, but I don't want to ever again use Strings (here CSS selectors) to "bring things together". Maybe it's the Java background but something feels so very wrong about this to me (though there are also many examples of inappropriate String usage in Java, instead of using types).

Replies

MaxArt 2984 days ago. link 1 point
You can pass a DOM element instead of a selector there. It's just like ReactDOM.render, only you can pass a selector too.

Plus you can pass a template property too so it won't use the element's content as a template.
Moreover, with Vue you can create .vue files that merge together the code, the template and the style of a single component. As a plus, you can use transpilers and compilers for all (Babel, Pug, Sass... you name it).

Finally you can even use JSX with Vue so you actually have maximum flexibility here.