This commit is contained in:
MapleLeaf
2021-12-30 16:33:41 -06:00
parent 88426791f0
commit 00e36ed81b
7 changed files with 35 additions and 44 deletions

View File

@@ -0,0 +1,19 @@
{/* prettier-ignore */}
```tsx
import * as React from "react"
import { Embed, Button } from "reacord"
function Counter() {
const [count, setCount] = React.useState(0)
return (
<>
<Embed title="Counter">
This button has been clicked {count} times.
</Embed>
<Button onClick={() => setCount(count + 1)}>
+1
</Button>
</>
)
}
```