3 ms·
Call it what you want. The point is instead of inventing an entirely different template language, JSX adds a little bit of HTML/XML-like syntax to JavaScript. Y
by tlrobinson 7y ago
Call it what you want. The point is instead of inventing an entirely different template language, JSX adds a little bit of HTML/XML-like syntax to JavaScript. You use regular old JavaScript operators and functions for things like conditionals and loops.
You don't have to use JSX with React, but the vast majority of people do, because they aren't dogmatic about it not being "pure" JavaScript or whatever.
- RobertRoberts 7y agoLook at this from an outsiders perspective. React's marketing says "It's just javascript", but it's not. I don't take issue with how React works, I take issue with how it's being presented to new users and outsiders.