Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
m1sta_
· 8y ago · 0 comments
JSX isn't JavaScript. It's JSX.
Comments
[–]
rickycook
8y ago
no, but it BECOMES javascript after transpile time
[–]
m1sta_
OP
8y ago
Yep. Just like C code isn't binary code.
[–]
phpnode
8y ago
Why is it not JavaScript? The Ecmascript spec explicitly allows syntax extensions.
[–]
orange8
8y ago
Is this valid Javascript: %%$$#~~~~##
What if I make it my special js "syntax extension"?
[–]
emn13
8y ago
I'm not javascript syntax, especially if you're being pedantic, but focusing on that is kind of missing the point, which is that it's tool friendly in the way string interpolation is not.