| We're splitting hairs now. It's an extension of the JS spec. Once a parser adds this grammar it is JS. It's syntactical sugar, unlike template syntax #if, ng-if, etc. Your argument is it's not part of the current Ecmascript spec, I never said it was, but if a parser or engine adds these two new PrimaryExpressions and attributes, it is JS. The entire point is JSX extends JS to allow templating via nested JS functions w/ pretty brackets instead of creating an entire templating system. Under your reasoning nothing that isn't in the current accepted Ecmascript spec implemented by browsers is JS. Does that mean decorators aren't JS? Were async functions not JS before they were in browsers? |
If you want to go around telling people it’s a non-standard extension to JavaScript or if you want to go around telling people it’s a superset of JavaScript, then by all means do that. But it is simply not JavaScript. Why do you insist on saying otherwise? All that does is start completely pointless arguments. What do you gain from insisting it is JavaScript when it isn’t?