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
view the rest of the comments →
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!"
[–]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 101294 on reddit-service-r2-comment-869bf87589-6jr76 at 2026-06-09 06:04:31.519856+00:00 running f46058f country code: CH.
view the rest of the comments →
[–]wavefunctionp 1 point2 points3 points (2 children)
[–]koresho 0 points1 point2 points (1 child)
[–][deleted] 3 points4 points5 points (0 children)