add playground

This commit is contained in:
MapleLeaf
2021-12-22 20:50:17 -06:00
parent a8e0570762
commit 01a50cd1ad
4 changed files with 674 additions and 2 deletions

12
playground/counter.tsx Normal file
View File

@@ -0,0 +1,12 @@
import * as React from "react"
import { Button } from "../src/main.js"
export function Counter() {
const [count, setCount] = React.useState(0)
return (
<>
this button was clicked {count} times
<Button onClick={() => setCount(count + 1)}>clicc</Button>
</>
)
}