Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/transitive-bullshit/react-fake-tweet
React renderer for tweets.
https://github.com/transitive-bullshit/react-fake-tweet
fake react tweet twitter
Last synced: 3 months ago
JSON representation
React renderer for tweets.
- Host: GitHub
- URL: https://github.com/transitive-bullshit/react-fake-tweet
- Owner: transitive-bullshit
- Created: 2020-04-19T13:29:18.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-06T03:46:52.000Z (about 2 years ago)
- Last Synced: 2024-10-29T20:09:28.093Z (3 months ago)
- Topics: fake, react, tweet, twitter
- Language: JavaScript
- Size: 1.46 MB
- Stars: 34
- Watchers: 3
- Forks: 6
- Open Issues: 19
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
# react-fake-tweet
> React renderer for tweets.
[![NPM](https://img.shields.io/npm/v/react-fake-tweet.svg)](https://www.npmjs.com/package/react-fake-tweet) [![JavaScript Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://standardjs.com)
This project is a fork of [fake-tweet](https://github.com/lluiscamino/fake-tweet) by [Lluís Camino](https://github.com/lluiscamino) with the following improvements:
- Uses CSS modules to not pollute CSS namespace
- Allows you to override className, style, etc on root element
- Smaller bundle size via microbundle
- Fixes some style issues
- Used in production by [twitter-search.io](https://twitter-search.io)## Install
```bash
npm install --save react-fake-tweet
```## Usage
```jsx
import React, { Component } from 'react'import { Tweet } from 'react-fake-tweet'
import 'react-fake-tweet/dist/index.css'const tweet = {
/* ... */
}class Example extends Component {
render() {
return (
)
}
}
```## Related
- [react-tweet-embed](https://github.com/capaj/react-tweet-embed) - Embeds a tweet using Twitter's official embedding SDK.
- Significantly more accurate and robust
- Slightly more heavy-weight
- No way that I'm aware of to fake the resulting tweet's content## License
MIT © [transitive-bullshit](https://github.com/transitive-bullshit)
Support my OSS work by following me on twitter