Proposal for Standardized JSX

by novocanticoon 8/30/2024, 5:36 PMwith 3 comments

by novocanticoon 8/30/2024, 6:18 PM

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

by grooneon 8/31/2024, 9:19 AM

The closest thing to this right now is solidjs. Super close to plain javascript but with tree shake build

by hellohello2on 9/1/2024, 2:15 PM

Why object literals instead of the standard function calls? Seems much less flexible.