3 ms·
I use htm (Hyperscript Tagged Markup) instead of JSX and I love it. It's just plain JS and works extremely similar to JSX: https://github.com/developit/htm http
by timdaub 6y ago
I use htm (Hyperscript Tagged Markup) instead of JSX and I love it. It's just plain JS and works extremely similar to JSX: https://github.com/developit/htm https://github.com/developit/htm
- mumblerino 6y agoThe main difference is that JSX is natively supported by the majority of modern tools while this is a plain string that needs extra plugins everywhere. Reading the "Improvements over JSX" [1] I don't see anything that makes it worth the hassle (unless you really hate transpilers/tools). Most of them are outdated or not actual "Improvements". [1]: https://github.com/developit/htm#improvements-over-jsx