外壳
ReactDom.render(
<Comment Box/>
document.getElementById (content)
);
列表
var CommentList = React.createClass({
render:function(){
return(
);
}
});
表单
var CommentList = React.createClass({
render:function(){
return(
);
}
});
commentbox
var CommentList = React.createClass({
render:function(){
return(
<div className="commentbox">111</div>
);
}
});
提交列表数据
var CommentList = React.createClass({
render:function(){
return(
<div className="CommentList">
<ul className="comment">
<comment author="小明">最近好吗</comment>
</ul>
</div>
);
}
});
var comment = React.createClass ({
render: function() {
return (
<li className="Comment Author">trent{this.props.author}:{this.props.children}hello</li>
);
}
});