That's not the point. The point is that JSX is a minor enhancement to the language (thus full power of js + small syntactic sugar) which doesn't reduce it's full power in any way. In opposite - templating languages are known (and some even brag about it) to have limited power.
??? The point is it isn't generally truly optional in a collaborative environment.
I like JSX, it is nice, but calling it optional is a bit of a stretch if you plan on having several people working on it (especially people hired outside of your non JSX react bubble).
The point of calling is optional is not giving a choice to the user - but making the user realize that it is only a syntax sugar .. that it in fact doesn't restrict a language, but simplifies some constructs.
Then call it syntactic sugar and not optional. Though honestly it is beyond the limits of what most people would call syntactic sugar. It isn't a simple transformation at all. I know several React sources call it syntactic sugar, and it kind of is, but it is probably outside the usage for the broader programmer community.
*Keep in mind I was originally replying to a comment (not yours, but a subcomment of it) that called it "completely optional"
1
u/1xltP3mgkiF9 Jan 05 '16
That's not the point. The point is that JSX is a minor enhancement to the language (thus full power of js + small syntactic sugar) which doesn't reduce it's full power in any way. In opposite - templating languages are known (and some even brag about it) to have limited power.