We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6025a2 commit 6e2375cCopy full SHA for 6e2375c
app/assets/javascripts/components/comment_box.js.jsx
@@ -2,8 +2,30 @@ var CommentBox = React.createClass({
2
render: function() {
3
return (
4
<div className="commentBox">
5
- Hello, world! I am a CommentBox.
+ <h1>Comments</h1>
6
+ <CommentList />
7
+ <CommentForm />
8
</div>
9
)
10
}
11
});
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
25
26
+ <div className="commentForm">
27
+ Hello, world! I am a CommentForm.
28
29
30
31
0 commit comments