4 ms·
Proposal for Standardized JSX
- novocantico 2y agoJSX 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/unity/vanillajsx.ts https://github.com/sdegutis/vanillajsx.com/blob/main/site/un... [1] https://github.com/oven-sh/bun/issues/13630 https://github.com/oven-sh/bun/issues/13630 [2] https://github.com/denoland/deno/issues/25312 https://github.com/denoland/deno/issues/25312
- groone 2y agoThe closest thing to this right now is solidjs. Super close to plain javascript but with tree shake build
- hellohello2 2y agoWhy object literals instead of the standard function calls? Seems much less flexible.