From 6c71073d103022564d72e2b3f4ac2c8f235c7d9c Mon Sep 17 00:00:00 2001
From: Domin-MND <69919939+domin-mnd@users.noreply.github.com>
Date: Tue, 31 Oct 2023 20:14:57 +0300
Subject: [PATCH] fix spacing
---
README.md | 65 ++++++++++++++++++++++++++++---------------------------
1 file changed, 33 insertions(+), 32 deletions(-)
diff --git a/README.md b/README.md
index b8c0c31..10871cf 100644
--- a/README.md
+++ b/README.md
@@ -22,51 +22,52 @@ pnpm add reacord react discord.js
## Example
+
```tsx
import { useState } from "react"
import { Embed, EmbedField, Button } from "reacord"
interface EmbedCounterProps {
- count: number
- visible: boolean
+ count: number
+ visible: boolean
}
function EmbedCounter({ count, visible }: EmbedCounterProps) {
- if (!visible) return <>>
+ if (!visible) return <>>
- return (
-
- )
+ return (
+
+ )
}
function Counter() {
- const [showEmbed, setShowEmbed] = useState(false)
- const [count, setCount] = useState(0)
- const instance = useInstance()
+ const [showEmbed, setShowEmbed] = useState(false)
+ const [count, setCount] = useState(0)
+ const instance = useInstance()
- return (
- <>
- this button was clicked {count} times
-
-