Skip to content

Commit 6e2375c

Browse files
committed
add CommentList, CommentForm components
1 parent c6025a2 commit 6e2375c

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

app/assets/javascripts/components/comment_box.js.jsx

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,30 @@ var CommentBox = React.createClass({
22
render: function() {
33
return (
44
<div className="commentBox">
5-
Hello, world! I am a CommentBox.
5+
<h1>Comments</h1>
6+
<CommentList />
7+
<CommentForm />
68
</div>
79
)
810
}
911
});
12+
13+
var CommentList = React.createClass({
14+
render: function() {
15+
return (
16+
<div className="commentList">
17+
Hello, world! I am a CommentList.
18+
</div>
19+
);
20+
}
21+
});
22+
23+
var CommentForm = React.createClass({
24+
render: function() {
25+
return (
26+
<div className="commentForm">
27+
Hello, world! I am a CommentForm.
28+
</div>
29+
);
30+
}
31+
});

0 commit comments

Comments
 (0)