4 ms·
JSX is also neither HTML nor JavaScript.
by nawitus 9y ago
JSX is also neither HTML nor JavaScript.
- dmitriid 9y ago> JSX is a thin XML-like DSL on top of Javascript ^ this. It directly translates to `React.createElement`. This is also why everything inside {} is pure Javascript including things like proper `this` etc.
- Can_Not 9y agoOk, so they both let you use something more like what you already know, except neither of them are technically JavaScript or HTML. Glad we established that. I think the understated bikeshed color here is that VueJS allows you to use jade/pug syntax instead of HTML.