Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/denis-ok/rescript-react-tweet-embed


https://github.com/denis-ok/rescript-react-tweet-embed

Last synced: about 1 month ago
JSON representation

Awesome Lists containing this project

README

        

# rescript-react-tweet-embed

### ReScript React component to embed tweets.

## Install

```
npm install rescript-react-tweet-embed
```

Add `rescript-react-tweet-embed` to your `bsconfig.json`:

```json
{
"bs-dependencies": ["rescript-react-tweet-embed"]
}
```

## Usage

```rescript

switch element {
| Ok(element) => Js.log2("Tweet loaded: ", element)
| Error() => Js.log("Tweet failed to load")
}}
/>
```

## Development

```
make start
```