News for hackers. Stuff that matters.
Re:Why we chose Vue.js over React by jetter on Sunday December 11, 2016 @01:53PM (#13152472)
I think your comment just proves the point of the original post. Your examples are still not good enough for me in terms of syntax and real work with html guys (specifically, <If><Else> has some quirks). I've gone through these things, and the pain&negativity about Angular 1 which translates to negativity to all template engines was also mentioned in the post.
Re:Why we chose Vue.js over React by halis on Sunday December 11, 2016 @04:50PM (#13153531)
JSX is awesome. It's just JavaScript, you can do whatever you want...

return ( <Foo> { selected ? <Bar /> : null } </Foo> );

or

let children = []; if (selected) children.push(<Bar />); if (blah) children.push(<Blah />); return ( <Foo> { children } </Foo> );

or

const bar = selected ? <Bar /> : null; return ( <Foo> { bar } </Foo> );

Re:Why we chose Vue.js over React by petre on Monday December 12, 2016 @11:08AM (#13159054)
Our Perl5 CGI.pm codebase used to look like that (html + logic). Fortunately we switched it over to Mojolicious and it became manageable. Not going back there thank you.