proxy-based Twister client written with react-js
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
552 B

var ReactBootstrap = require('react-bootstrap')
, NavItem = ReactBootstrap.NavItem
, Nav = ReactBootstrap.Nav
, ListGroup = ReactBootstrap.ListGroup
, Panel = ReactBootstrap.Panel
var React = require('react');
var Post = require("./Post.js");
module.exports = Postboard = React.createClass({
render: function() {
var posts = this.props.data.map(function(post, index) {
return (
<Post post={post} key={post.postid} />
);
});
return (
<ListGroup fill>
{posts}
</ListGroup>
);
}
});