Petri K. Silén’s Post

❓ In my opinion, what is one of the best inventions in the 21st century? It is JSX. When you build a web app, you have two choices, put logic in HTML or put HTML in logic. React and JSX chose to put HTML in logic and all the rest (Angular, Vue and Svelte) decided to put logic in HTML. JSX is superior because you write the logic in a language you already know, namely JavaScript. For other frameworks, you need to learn a custom logic language that you use in HTML. #html #javascript #react #jsx #angular #vue #svelte

But i think "HTM" is even better. It didn't even need any plugin to be native in your IDE because its not a new syntax or anything, and yet it looks like JSX but works with string literals.

Like
Reply

Lit achieved the same without JSX and around 2KB gziped. Just Vanilla JS. No Babel needed. Is it the ultimate tool then? 😅

Like
Reply
See more comments

To view or add a comment, sign in

Explore content categories