3 ms·
> Wow, after reading this, I'd be surprised if anyone could come away with the conclusion "Yeah, that's better than JSX." IDK, hyperscript (or even just aliase
by masklinn 8y ago
> Wow, after reading this, I'd be surprised if anyone could come away with the conclusion "Yeah, that's better than JSX."
IDK, hyperscript (or even just aliased createElement) is enjoyable, not that verbose, and not needing a compilation pipeline just for JSX is nice. As in, I want to drop in an interactive bit inside a wider static page, dropping in react's JS (or linking in a CDN copy) and using createElement is way more convenient than having to set up a compilation pipeline.
- tracker1 8y agoI'm using webpack/babel and ES6 syntax anyway, so the transpile doesn't bug me. It's also very close to E4X which I really wanted for a very long time, but never gained acceptance outside of ActionScript 3 (Adobe) and Mozilla. VB.Net also has a similar literal syntax).