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,11 @@
import * as React from "react"
export function Counter() {
const [count, setCount] = React.useState(0)
return (
<div>
<p>You clicked {count} times!</p>
<button onClick={() => setCount(count + 1)}>Click me</button>
</div>
)
}