-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b8438c9
commit 0f1fb31
Showing
5 changed files
with
78 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
/** @jsx h */ | ||
import { h, renderSSR } from "https://deno.land/x/nano_jsx@v0.0.33/mod.ts"; | ||
|
||
function App() { | ||
return ( | ||
<html> | ||
<head> | ||
<title>Hello from JSX</title> | ||
</head> | ||
<body> | ||
<h1>Hello world</h1> | ||
</body> | ||
</html> | ||
); | ||
} | ||
|
||
export default (_req: Request) => { | ||
const html = renderSSR(<App />); | ||
|
||
return new Response(html, { | ||
headers: { | ||
"content-type": "text/html", | ||
}, | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
export { | ||
extname, | ||
relative, | ||
resolve, | ||
toFileUrl, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters