TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Show HN: JSX in Browser with Sucrase

2 pointsby altbdoorover 1 year ago
Been working on a number of React projects, and was intrigued a little by JSX. I wanted to make running JSX in browser easier, so I tried my hand at using a service worker, to transpile JSX on the fly.<p>I started with @babel&#x2F;standalone, but the library was heavy enough to notice a delay on the browser. I found out about sucrase a little later, and tried building it for the browser, and voila!<p>Didn&#x27;t really thoroughly test if everything JSX is supported, but it seems fine for small learning or prototyping.

1 comment

peeyover 1 year ago
This is really cool. Do you also plan to show the code before compilation &#x2F; allow it to be edited and be compiled on your demo page?
评论 #38073593 未加载