simple vite react ssr setup
This commit is contained in:
11
packages/docs-new/src/counter.tsx
Normal file
11
packages/docs-new/src/counter.tsx
Normal 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>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user