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. +