4 ms·
What about Babel, JSX? I'm a C++ dev that's trying to learn JS. As I know if you want to use modern JS you have to compile it with babel to "portable" JS with
by slezyr 8y ago
What about Babel, JSX? I'm a C++ dev that's trying to learn JS.
As I know if you want to use modern JS you have to compile it with babel to "portable" JS with Babel.
And it was really painful to create DOM elements with createElement and small wrappers around them, so JSX should help here.
Or you can just skip those?
- rolleiflex 8y agoListen to the pain. You can skip JSX and Babel. As I’ve mentioned before, Vue obviates the need for both.
- coldtea 8y agoLibs are all ready to use, you don't need to compile them with babel. And for stuff you write yourself, they'll only need babel if you (a) want to support some ancient browsers (e.g. IE7), or (b) you want to use fancy new JS features. If you're OK to target 90% of the people with actual browsers from 3-4 years ago, then you don't need Babel at all (at least not for that).