Skip to main content
Module

x/netzo/mod.ts>jsx

SDK for Netzo, the open platform to instantly deploy JavaScript and TypeScript to URL endpoints, connect essential APIs, automate business processes and build internal tools faster, without managing servers.
Popular
Go to Latest
function jsx
import { jsx } from "https://deno.land/x/netzo@v0.1.46/mod.ts";

Renders JSX components to HTML and returns a Response with text/html as the content-type.

Examples

Example 1

import { serve, jsx, h } from "https://deno.land/x/sift/mod.ts"

const Greet = ({name}) => <div>Hello, {name}</div>;

serve({
 "/": () => jsx(<html><Greet name="Sift" /></html),
})

Make sure your file extension is either .tsx or .jsx and you've h imported when using this function.

Parameters

jsx: VNode
optional
init: ResponseInit