|
@@ -46,7 +46,7 @@ let CommentBox = React.createClass({
|
|
return (
|
|
return (
|
|
<div className="commentBox">
|
|
<div className="commentBox">
|
|
<h1>Comments</h1>
|
|
<h1>Comments</h1>
|
|
- <CommentList />
|
|
|
|
|
|
+ <CommentList data={this.props.data} />
|
|
<CommentForm />
|
|
<CommentForm />
|
|
</div>
|
|
</div>
|
|
);
|
|
);
|
|
@@ -54,6 +54,6 @@ let CommentBox = React.createClass({
|
|
});
|
|
});
|
|
|
|
|
|
ReactDOM.render(
|
|
ReactDOM.render(
|
|
- <CommentBox />,
|
|
|
|
|
|
+ <CommentBox data={data} />,
|
|
document.getElementById("content")
|
|
document.getElementById("content")
|
|
);
|
|
);
|