3 ms·
Bun and Deno support .jsx and .tsx files out of the box. https://bun.sh/docs/runtime/jsx https://bun.sh/docs/runtime/jsx https://docs.deno.com/runtime/manual/
by dsego 2y ago
Bun and Deno support .jsx and .tsx files out of the box.
https://bun.sh/docs/runtime/jsx https://bun.sh/docs/runtime/jsx
https://docs.deno.com/runtime/manual/advanced/jsx_dom/jsx/ https://docs.deno.com/runtime/manual/advanced/jsx_dom/jsx/
You have to sub the JSX factory, eg React.createElement with a library that spits out html instead of building a DOM tree.
It's not hard to do, for example I created this tiny library to play around with async server-side components.
https://github.com/dsego/ssr_jsx https://github.com/dsego/ssr_jsx
I think for Deno you have their Fresh framework which does JSX components https://fresh.deno.dev/ https://fresh.deno.dev/.