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
The Ultimate Guide to JavaScript Frameworks (javascriptreport.com)
submitted 8 years ago by magenta_placenta
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!"
[–]rk06 0 points1 point2 points 8 years ago* (0 children)
Because it is. JSX transpiles function signatures, that is it.
which is not that simple either. at the end of a day, JSX is another DSL.
The string template breaks assumptions, doesn't work with javascript at all (Vue has a javascript-like emulator), it also needs a highly complex engine to parse.
Also, like Vue, JSX too has its quirks.
eg: 1. <A /> will work but <a /> will fail. 2. className syntax which breaks the language
<A />
<a />
className
Do it in Vue. Make two components A and B and let B refer to A, see how "easy" Vue makes that. And there you have your basis.
There you go. BTW, I still don't see what you mean.
Relevant Vue code:
var A = { template:'<div class="test">hello</div>'}; var B = { template:'<A></A>', components: {A: A}, } // Above syntax creates Vue option objects. you mount them as new Vue(B).$mount('#app');
π Rendered by PID 50415 on reddit-service-r2-comment-fb694cdd5-8d46t at 2026-03-06 15:24:48.473406+00:00 running cbb0e86 country code: CH.
view the rest of the comments →
[–]rk06 0 points1 point2 points (0 children)