From 2a8ee7885d2e6f79cf7848540909f2997f2e03c3 Mon Sep 17 00:00:00 2001 From: Domin-MND <69919939+domin-mnd@users.noreply.github.com> Date: Wed, 1 Nov 2023 22:01:36 +0300 Subject: [PATCH] revert readme --- README.md | 39 ++++++--------------------------------- 1 file changed, 6 insertions(+), 33 deletions(-) diff --git a/README.md b/README.md index 10871cf..e6136cd 100644 --- a/README.md +++ b/README.md @@ -25,47 +25,20 @@ pnpm add reacord react discord.js ```tsx 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 ( - - {count % 2 ? "no" : "yes"} - - ) -} +import { Embed, Button } from "reacord" function Counter() { - const [showEmbed, setShowEmbed] = useState(false) - const [count, setCount] = useState(0) - const instance = useInstance() + const [count, setCount] = useState(0) return ( <> - this button was clicked {count} times - + + This button has been clicked {count} times. +