反应成分必须只有一个根节点,因为你正在使用
TableforbasictaskList内
table你需要包装
commentNodes在
<tbody>,也在里面
Tableforbasictask移动
TableforbasictaskForm从
table
var TableforbasictaskList = React.createClass({ render: function() { // ..... return (<tbody>{commentNodes}</tbody>); }});var Tableforbasictask = React.createClass({ render: function() { return <div className="downloadlinks"> <table className="table table-bordered table-striped-col nomargin" id="table-data" > <thead> <tr align="center"> <td>Task Name</td> <td>Standard Discription of Task</td> <td>Employee Comment</td> <td>Employee rating</td> </tr> </thead> <TableforbasictaskList data={this.props.data} /> </table> <TableforbasictaskForm /> </div> }});Example



