Skip to main content
Home

Built and signed on GitHub Actions

Render HTML from JSX, attach it ad-hoc JavaScript

This package works with DenoIt is unknown whether this package works with Cloudflare Workers, Node.js, Bun, Browsers
It is unknown whether this package works with Cloudflare Workers
It is unknown whether this package works with Node.js
This package works with Deno
It is unknown whether this package works with Bun
It is unknown whether this package works with Browsers
JSR Score
100%
Published
6 months ago (0.1.3)

Render HTML from JSX, attach it ad-hoc JavaScript

Examples

Create a working HTML response

import { render } from "@classic/html";
import { assertMatch } from "@std/assert";

const page = (
  <html>
    <head>
      <title>Working web page</title>
    </head>
    <body>
      <h1>It works!</h1>
    </body>
  </html>
);

const res = new Response(render(page));

assertMatch(await res.text(), /<h1>It works!<\/h1>/);
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@classic/html

Import symbol

import * as html from "@classic/html";
or

Import directly with a jsr specifier

import * as html from "jsr:@classic/html";

Add Package

pnpm i jsr:@classic/html
or (using pnpm 10.8 or older)
pnpm dlx jsr add @classic/html

Import symbol

import * as html from "@classic/html";

Add Package

yarn add jsr:@classic/html
or (using Yarn 4.8 or older)
yarn dlx jsr add @classic/html

Import symbol

import * as html from "@classic/html";

Add Package

vlt install jsr:@classic/html

Import symbol

import * as html from "@classic/html";

Add Package

npx jsr add @classic/html

Import symbol

import * as html from "@classic/html";

Add Package

bunx jsr add @classic/html

Import symbol

import * as html from "@classic/html";