3 ms·
You need to invent and build non-trivial systems to compile JSX, while you only need a couple lines to make a mithril.js style hyperscript h() without the need
by slmjkdbtl 3y ago
You need to invent and build non-trivial systems to compile JSX, while you only need a couple lines to make a mithril.js style hyperscript h() without the need for a compiler, and you get variables, loops / array maps etc for free since you're writing normal JS.
- diggan 3y agoSure, I'm not arguing for everyone to use JSX (I personally use Reagent/Hiccup in ClojureScript most of the time, which are just built-in vectors (arrays) basically). I'm just explaining to someone why people chose JSX in favor of X, when they come from a HTML/CSS/JS background.
- slmjkdbtl 3y agoYeah that's fair! Everyone has their own way to do stuff