-
-
Save derekduoba/2f8e381f56409be923a8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//** @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