An asynchronous JSX runtime for server-side rendering (SSR) and browser HTML template generation, with zero dependencies. Version 2.1.1 is current, with stable releases. Key differentiators: supports async components natively, automatic HTML entity escaping (v2+) for XSS prevention, and works with TypeScript, esbuild, and Babel via the react-jsx transform.
npm install jsx-async-runtimeNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Renders a basic HTML page with an async JSX component, using jsxToString with a 'this' context.
Use the `{ html: '...' }` object pattern to insert raw HTML, or set `this.jsxEscapeHTML = false` to restore v1 behavior.Call `jsxToString.call({}, element)` or pass a context object with `jsxEscapeHTML` and other options.Use `async function` components that `await` and then return JSX directly.
Ensure `npm i jsx-async-runtime` is run and use `import { jsxToString } from 'jsx-async-runtime'`.Use `jsxToString.call({}, element)` instead of `jsxToString(element)`.Set `"jsx": "react-jsx", "jsxImportSource": "jsx-async-runtime"` in tsconfig.json.
No dependency data recorded yet.