Skip to content

Commit 1668be1

Browse files
committed
Merge pull request #2 from sibljon/master
Upgrade to React 0.13.3
2 parents fd71a31 + 59154b5 commit 1668be1

File tree

3 files changed

+17181
-16022
lines changed

3 files changed

+17181
-16022
lines changed

assets/demo3.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,15 @@ var React = self.React;
66

77
var CommentBox = React.createClass({displayName: 'CommentBox',
88
render: function () {
9+
var commentList = React.createElement(CommentList,
10+
this.props
11+
);
912
return (
10-
React.DOM.div({className: "commentBox"},
13+
React.createElement(
14+
"div",
15+
{},
1116
React.DOM.h1(null, "Comments"),
12-
CommentList(this.props)
17+
commentList
1318
)
1419
);
1520
}
@@ -18,7 +23,11 @@ var CommentBox = React.createClass({displayName: 'CommentBox',
1823
var CommentList = React.createClass({displayName: 'CommentList',
1924
render: function () {
2025
var commentNodes = this.props.data.map(function (comment) {
21-
return Comment({key: comment.id, author: comment.author}, comment.text);
26+
return React.createElement(
27+
Comment,
28+
{key: comment.id, author: comment.author},
29+
comment.text
30+
);
2231
});
2332
return (
2433
React.DOM.div({className: "commentList"},

0 commit comments

Comments
 (0)