From 5674e3c1b60e9bd47fcc9021885fa24ee2c72341 Mon Sep 17 00:00:00 2001
From: Domin-MND <69919939+domin-mnd@users.noreply.github.com>
Date: Tue, 31 Oct 2023 20:07:21 +0300
Subject: [PATCH] update readme & remove useless comments
---
README.md | 56 ++++++++++++++-----
.../reacord/scripts/discordjs-manual-test.tsx | 55 +++++++++++++++++-
.../src/content/guides/1-sending-messages.md | 2 -
3 files changed, 94 insertions(+), 19 deletions(-)
diff --git a/README.md b/README.md
index 124a7e2..b8c0c31 100644
--- a/README.md
+++ b/README.md
@@ -22,23 +22,51 @@ pnpm add reacord react discord.js
## Example
-
```tsx
-import * as React from "react"
-import { Embed, Button } from "reacord"
+import { useState } from "react"
+import { Embed, EmbedField, Button } from "reacord"
+
+interface EmbedCounterProps {
+ count: number
+ visible: boolean
+}
+
+function EmbedCounter({ count, visible }: EmbedCounterProps) {
+ if (!visible) return <>>
+
+ return (
+
+ )
+}
function Counter() {
- const [count, setCount] = React.useState(0)
- return (
- <>
-
-
- >
- )
+ const [showEmbed, setShowEmbed] = useState(false)
+ const [count, setCount] = useState(0)
+ const instance = useInstance()
+
+ return (
+ <>
+ this button was clicked {count} times
+
+