simple vite react ssr setup

This commit is contained in:
MapleLeaf
2021-12-31 10:51:06 -06:00
committed by Darius
parent 44bdfa0d8e
commit 66e4ebc250
9 changed files with 223 additions and 328 deletions

View File

@@ -0,0 +1,21 @@
import React from "react"
import { Counter } from "./counter"
export function Root() {
return (
<html lang="en">
<head>
<meta charSet="UTF-8" />
<meta httpEquiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="test description" />
<title>Reacord</title>
<script type="module" src="/src/entry.client.tsx" />
</head>
<body>
<h1>hi</h1>
<Counter />
</body>
</html>
)
}