Skip to content

Instantly share code, notes, and snippets.

@derekduoba
Created September 17, 2015 00:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save derekduoba/2f8e381f56409be923a8 to your computer and use it in GitHub Desktop.
Save derekduoba/2f8e381f56409be923a8 to your computer and use it in GitHub Desktop.
//** @jsx React.DOM */
var React = require('react');
module.exports = Tweets = React.createClass({
render: function() {
var tweet = this.props.tweet;
return (
<li className={"tweet" + (tweet.active ? ' active' : '')}>
<img src={tweet.avatar} className="avatar"/>
<blockquote>
<cite>
<a href={"http://www.twitter.com/" + tweet.screenname}>{tweet.author}</a>
<span className="screen-name">@{tweet.screenname}</span>
<cite>
</blockquote>
</li>
)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment