Re:2016 JavaScript Rising Stars
by ng12 on Wednesday January 18, 2017 @02:27PM
(#13429492)
The argument is passing your source code through a REPL makes it significantly more difficult to learn? Learning JSX isn't any more difficult than learning Vue's template binding syntax.
[ Parent
| on HN ]
Re:2016 JavaScript Rising Stars
by BinaryIdiot on Wednesday January 18, 2017 @03:37PM
(#13430064)
You're completely ignoring the argument. React doesn't really tell you that you can just grab that file but even so you still need to get JSX processed.
It's all about the friction. Vue currently offers significantly less friction to jump into than React.
JS -> JSX is transpilation, not a REPL.
Yes, and the Babel REPL/CLI can do that transpilation.
One wouldn't normally use babel as a REPL. I don't think it even has one (asides from node's own REPL, which isn't normally part of using Babel). Have you ever interactively typed commands into Babel?