Question: is jsx only for react?
Answer: Is JSX only for React? No. JSX was invented as syntax extension (it's not a templating language ) for JavaScript. Basically it allows you to mix HTML + JavaScript whereas you use JavaScript to express loops, conditionals etc.