News for hackers. Stuff that matters.
Re:The React Is “just” JavaScript Myth by ipsum2 on Saturday June 09, 2018 @06:39AM (#17272379)
I dislike the templating language, preferring jsx which is mostly standard js syntax, e.g.:

Vue: <li v-for="i in items">{{i}}</li>

React: items.map((i) => <li>{i}</li>)

Re:The React Is “just” JavaScript Myth by bartaxyz on Saturday June 09, 2018 @06:50AM (#17272405)
Just to make things clear. You can use JSX with Vue as well. It's even a recognized way to write code in the official documentation (https://vuejs.org/v2/guide/render-function.html#JSX). JSX is just a language that can be interpreted into code for React & Vue.
Re:The React Is “just” JavaScript Myth by Can_Not on Saturday June 09, 2018 @03:53PM (#17274661)
Not to mention that you can use Jade/pug, also.
Re:The React Is “just” JavaScript Myth by alayek on Saturday June 09, 2018 @08:33AM (#17272714)
I learned this the hard way, coming from React to Vue land; that v-for on an element would also repeat the element itself.

With React, it was pretty clear which element / component would repeat.

Re:The React Is “just” JavaScript Myth by Jare on Saturday June 09, 2018 @06:54AM (#17272416)
IIRC you can use JSX with Vue via a Babel plugin [1]. I can't vouch for it personally but it should be pretty easy to use.

[1] https://github.com/vuejs/babel-plugin-transform-vue-jsx#usag...

Re:The React Is “just” JavaScript Myth by Bizarro on Saturday June 09, 2018 @09:17AM (#17272865)
"Stringy code" is an issue, but it's more declarative and readable than JSX map.
Re:The React Is “just” JavaScript Myth by kyriakos on Saturday June 09, 2018 @09:37AM (#17272942)
exactly that. I prefer using javascript than inventing a template DSL