Hacker News new | ask | show | jobs
Proposal for Standardized JSX (vanillajsx.com)
4 points by novocantico 655 days ago
3 comments

JSX can become valid, standardized ECMAScript syntax.

But first we need a valid syntactic sugar transformation, which I propose here.

Then we need to implement it in things like babel[0] bun[1] and deno[2].

Then, frameworks would adopt it as an optional alternative implementation.

Eventually, it could gain widespread support and become standardized.

[0] https://github.com/sdegutis/vanillajsx.com/blob/main/site/un...

[1] https://github.com/oven-sh/bun/issues/13630

[2] https://github.com/denoland/deno/issues/25312

The closest thing to this right now is solidjs. Super close to plain javascript but with tree shake build
Why object literals instead of the standard function calls? Seems much less flexible.