rescript-react-tweet-embed
v0.1.3
Published
ReScript React component to embed tweets.
Downloads
13
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
:
{
"bs-dependencies": ["rescript-react-tweet-embed"]
}
Usage
<TweetEmbed
id="1435927427662946317"
theme=#dark
onLoad={element =>
switch element {
| Ok(element) => Js.log2("Tweet loaded: ", element)
| Error() => Js.log("Tweet failed to load")
}}
/>
Development
make start