mirror of
https://github.com/twisterarmy/twister-react.git
synced 2025-01-26 22:54:43 +00:00
14 lines
344 B
JavaScript
14 lines
344 B
JavaScript
var Postboard = React.createClass({displayName: "Postboard",
|
|
render: function() {
|
|
var posts = this.props.data.map(function(post, index) {
|
|
return (
|
|
React.createElement(Post, {post: post, key: post.postid})
|
|
);
|
|
});
|
|
return (
|
|
React.createElement(ListGroup, {fill: true},
|
|
posts
|
|
)
|
|
);
|
|
}
|
|
});
|