File tree Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Expand file tree Collapse file tree 1 file changed +26
-1
lines changed Original file line number Diff line number Diff line change 10
10
* WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
11
11
*/
12
12
13
+
14
+
13
15
var CommentBox = React . createClass ( {
14
16
render : function ( ) {
15
17
return (
16
18
< div className = "commentBox" >
17
- Hello, world! I am a CommentBox.
19
+ < h1 > Comments</ h1 >
20
+ < CommentList />
21
+ < CommentForm />
22
+ </ div >
23
+ ) ;
24
+ }
25
+ } ) ;
26
+
27
+ var CommentList = React . createClass ( {
28
+ render : function ( ) {
29
+ return (
30
+ < div className = "commentList" >
31
+ Hello, world! I am a CommentList.
18
32
</ div >
19
33
) ;
20
34
}
21
35
} ) ;
36
+
37
+ var CommentForm = React . createClass ( {
38
+ render : function ( ) {
39
+ return (
40
+ < div className = "commentForm" >
41
+ Hello, world! I am a CommentForm.
42
+ </ div >
43
+ ) ;
44
+ }
45
+ } ) ;
46
+
22
47
ReactDOM . render (
23
48
< CommentBox /> ,
24
49
document . getElementById ( 'content' )
You can’t perform that action at this time.
0 commit comments