TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Proposal for Standardized JSX

4 点作者 novocantico9 个月前

3 条评论

novocantico9 个月前
JSX can become valid, standardized ECMAScript syntax.<p>But first we need a valid syntactic sugar transformation, which I propose here.<p>Then we need to implement it in things like babel[0] bun[1] and deno[2].<p>Then, frameworks would adopt it as an optional alternative implementation.<p>Eventually, it could gain widespread support and become standardized.<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;sdegutis&#x2F;vanillajsx.com&#x2F;blob&#x2F;main&#x2F;site&#x2F;unity&#x2F;vanillajsx.ts">https:&#x2F;&#x2F;github.com&#x2F;sdegutis&#x2F;vanillajsx.com&#x2F;blob&#x2F;main&#x2F;site&#x2F;un...</a><p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;oven-sh&#x2F;bun&#x2F;issues&#x2F;13630">https:&#x2F;&#x2F;github.com&#x2F;oven-sh&#x2F;bun&#x2F;issues&#x2F;13630</a><p>[2] <a href="https:&#x2F;&#x2F;github.com&#x2F;denoland&#x2F;deno&#x2F;issues&#x2F;25312">https:&#x2F;&#x2F;github.com&#x2F;denoland&#x2F;deno&#x2F;issues&#x2F;25312</a>
groone9 个月前
The closest thing to this right now is solidjs. Super close to plain javascript but with tree shake build
hellohello29 个月前
Why object literals instead of the standard function calls? Seems much less flexible.