|
|
|
|
|
by drunknhik
2897 days ago
|
|
Have you ever made a graphql server with apollo-tools? Do you complain that SDL is a "new syntax" that you have to learn when you can just use regular javascript? > <label @click="edit(todo)">
> This is not Javascript. If it was, it would assign the result of the function call to @click. It doesn't. It's a Javascript-like scripting language that has magical binding into regular Javascript. Great, so it's not javascript. To a lot of folks it looks a lot nicer than <label onClick={() => this.edit(this.state.todo)}> There's a lot less noise, and it's _much_ friendlier for (most) designers. I have never felt that I had to keep hundreds of gotchas in my mind while using vue. The syntax is extremely intuitive (unlike angular). Takes maybe one hour to read through the docs, and you have it. |
|
Have I ever mentioned apollo or graphql tools? Let me check: no
> There's a lot less noise, and it's _much_ friendlier for (most) designers.
I love how you could find exactly one thing out of a whole list of things that may be just ever so slightly better than JSX.
And of course, it's not better than JSX for very obvious reason that you chose to ignore: how { } in JSX accepts plain JS with the only exception that it has to be an expression. And (and it's the most important part): curly braces in JSX mean and accept the same thing everywhere in JSX.
In Vue though: What do @ attributes accept? What do : attributes accept? What do curly braces accept? etc.