Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/itsMapleLeaf/reacord

Create interactive Discord messages using React. ⚛
https://github.com/itsMapleLeaf/reacord

discord discord-js nodejs react react-renderer

Last synced: about 2 months ago
JSON representation

Create interactive Discord messages using React. ⚛

Awesome Lists containing this project

README

        

Reacord: Create interactive Discord messages using React

## Installation ∙ [![npm](https://img.shields.io/npm/v/reacord?color=blue&style=flat-square)](https://www.npmjs.com/package/reacord)

```console
# npm
npm install reacord react discord.js

# yarn
yarn add reacord react discord.js

# pnpm
pnpm add reacord react discord.js

```

## Get Started

[Visit the docs to get started.](https://reacord.mapleleaf.dev/guides/getting-started)

## Example

```tsx
import { useState } from "react"
import { Embed, Button } from "reacord"

function Counter() {
const [count, setCount] = useState(0)

return (
<>

This button has been clicked {count} times.

setCount(count + 1)}
/>
>
)
}
```

![Counter demo](./reacord-counter-demo.gif)