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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Web-based Babel alternative for React/JSX (ultra-fast and tiny 5.1 kB)

5 点作者 __app_dev__大约 5 年前

2 条评论

FreeHugs大约 5 年前
<p><pre><code> The jsxLoader.js script was created to provide a fast method for including React with JSX on web pages and web apps with no build process </code></pre> React does not have a standalone script that does that?<p>I was under the impression that these scripts do exactly that:<p><a href="https:&#x2F;&#x2F;reactjs.org&#x2F;docs&#x2F;cdn-links.html" rel="nofollow">https:&#x2F;&#x2F;reactjs.org&#x2F;docs&#x2F;cdn-links.html</a><p>What am I missing?
评论 #22415978 未加载
__app_dev__大约 5 年前
Here is a Hello World Demo:<p><a href="https:&#x2F;&#x2F;www.dataformsjs.com&#x2F;examples&#x2F;hello-world&#x2F;en&#x2F;react.htm" rel="nofollow">https:&#x2F;&#x2F;www.dataformsjs.com&#x2F;examples&#x2F;hello-world&#x2F;en&#x2F;react.ht...</a><p>If you view with any modern browser it will use `jsxLoader.js` as the compiler and if you use IE 11 or other old browsers it will download and use Polyfills with Babel Standalone.