Enable JSX Templating in ElysiaJS
This commit is contained in:
@@ -1,14 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<script defer src="./htmx.min.js"></script>
|
||||
<title>Caleb's Blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello</h1>
|
||||
<button hx-get="/content/post">Click Me</button>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
17
src/frontend/index.tsx
Normal file
17
src/frontend/index.tsx
Normal file
@@ -0,0 +1,17 @@
|
||||
export function Index() {
|
||||
return (
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<script defer src="./htmx.min.js"></script>
|
||||
<title>Caleb's Blog</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello</h1>
|
||||
<button hx-get="/content/post">Click Me</button>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user