Skip to content

Instantly share code, notes, and snippets.

package models
import (
"github.com/astaxie/beego/orm"
"github.com/astaxie/beego/validation"
"time"
"fmt"
"strconv"
"errors"
)
var PostList = React.createClass({
render: function() {
var postNodes = this.props.data.map(function (post) {
return (
<Post key={post.Id} title={post.Title}>
{post.Blog}
</Post>
);
});