Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/denis-ok/rescript-react-tweet-embed
- Owner: denis-ok
- Created: 2021-10-29T18:14:21.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-16T16:20:54.000Z (about 2 years ago)
- Last Synced: 2024-12-08T06:08:42.403Z (about 2 months ago)
- Language: ReScript
- Homepage: https://rescript-react-tweet-embed.vercel.app/
- Size: 362 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
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
```