Hacker News new | ask | show | jobs
by spsoto 3205 days ago
I used to think that way, but then you realize that JSX ends up behaving only as syntactic sugar for `React.createElement`.

If you have that clear, JSX is only syntax for the pure JavaScript you end up writing. Diving in the toolchain and ecosystem also helps you note that. Adding Webpack loaders to the mix, and then your application ends up only consisting of JavaScript files, where you abbreviate `React.createElement` with the old HTML tags.