Created
March 20, 2023 20:14
-
-
Save gflarity/8d9663e5cd1314d1fce6aa84f4a21d3e to your computer and use it in GitHub Desktop.
Using TSX/JSX files with Deno.
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
#!/usr/bin/env deno run | |
/** @jsxImportSource https://esm.sh/preact */ | |
import { render } from "https://esm.sh/preact-render-to-string@5.2.6"; | |
export function App() { | |
return ( | |
<html lang="en"> | |
<head> | |
<title>title</title> | |
</head> | |
<body> | |
Hello World! | |
</body> | |
</html> | |
); | |
} | |
console.log(render(App())); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment