Files
reacord/packages/docs/app/modules/landing/landing-example.mdx
2022-01-09 17:36:42 -06:00

20 lines
381 B
Plaintext

{/* 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>
</>
)
}
```