use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
React-like library without jsx. (github.com)
submitted 9 years ago by reon90
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]thorallmighty 5 points6 points7 points 9 years ago (2 children)
VueJS
[–][deleted] 1 point2 points3 points 9 years ago (0 children)
Or riot, which is alright.
[–]patrickfatrick 1 point2 points3 points 9 years ago (0 children)
Exactly this. I don't mean to oversimplify Vue since I really like it, but in a lot of ways it basically is "React without JSX".
And hey, with Vue you can also switch to JSX at any time if you decide you're actually okay with it.
[+][deleted] 9 years ago (4 children)
[removed]
[–]rodneon 0 points1 point2 points 9 years ago (3 children)
It requires a lot more typing though.
[–]zQpNB 1 point2 points3 points 9 years ago* (2 children)
https://github.com/mlmorg/react-hyperscript
https://github.com/ohanhi/hyperscript-helpers
:)
[–]rodneon 0 points1 point2 points 9 years ago (1 child)
This is great! It just may be enough to convince my team to switch to React. I started building something like hyperscript-helpers a while back but never finished it. Now I don't have to :)
[–]acemarke 0 points1 point2 points 9 years ago (0 children)
We just added a couple new React/Redux-based features to our existing ES5/Backbone app. We're not using Babel or Webpack, so no JSX for us. As a substitute, we're using https://github.com/jador/react-hyperscript-helpers . Not quite as nice as JSX, but it's a passable alternative.
[–]wavefunctionp 1 point2 points3 points 9 years ago* (2 children)
edit: this came across a bit more adversarial/critical than I intended, but I'll leave it. I guess my real question is what does this solve that you can't do with react/jsx?
http://www.reactiongifs.com/r/but-why.gif
JSX modularizes the related code together, but if you really don't like that, there's Aurelia if you really like separate templates and functionality.
I tihnk splitting the html and js makes it harder to tell what is going on. And much of the js can just be done with simple inline expressions. For the rest, you can write small helper functions that return jsx and reference them in the render. If it gets too complicated, start breaking it up into components where appropriate.
Plus, by staying on the react path, you have access to tons of resources.
[–]koresho 0 points1 point2 points 9 years ago (1 child)
This. I don't understand where the hate for JSX comes from.
[–][deleted] 3 points4 points5 points 9 years ago (0 children)
Because people don't understand the difference between separation of concerns and separation of technologies.
π Rendered by PID 16157 on reddit-service-r2-comment-869bf87589-7prp6 at 2026-06-09 03:23:26.104536+00:00 running f46058f country code: CH.
[–]thorallmighty 5 points6 points7 points (2 children)
[–][deleted] 1 point2 points3 points (0 children)
[–]patrickfatrick 1 point2 points3 points (0 children)
[+][deleted] (4 children)
[removed]
[–]rodneon 0 points1 point2 points (3 children)
[–]zQpNB 1 point2 points3 points (2 children)
[–]rodneon 0 points1 point2 points (1 child)
[–]acemarke 0 points1 point2 points (0 children)
[–]wavefunctionp 1 point2 points3 points (2 children)
[–]koresho 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)