Skip to content

Commit 21a0dd0

Browse files
committed
add an html alias to jsx template tag
1 parent 598c31a commit 21a0dd0

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/jsx-tag.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ export function jsx(
3131
return build(element);
3232
}
3333

34+
/** Alias for `jsx` template tag. */
35+
export const html = jsx;
36+
3437
// Type definitions for a bare-bones AST
3538
interface ParseElement {
3639
type: "element";

src/standalone.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
export * from "./crank.js";
2-
export {jsx} from "./jsx-tag.js";
2+
export * from "./jsx-tag.js";

0 commit comments

Comments
 (0)