Skip to content

Commit

Permalink
Fixed pure JS example in README.
Browse files Browse the repository at this point in the history
  • Loading branch information
jussi-kalliokoski committed Oct 30, 2014
1 parent 06a48d6 commit eb1e972
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ var items = [{
var ListItem = React.createClass({
displayName: "ListItem",

renderTree: function () {
render: function () {
return React.createElement("li", { className: "ListItem" },
React.createElement("a", { href: "/items/" + this.props.item.id },
this.props.item.name
Expand All @@ -140,7 +140,7 @@ var List = React.createClass({
});
},

renderTree: function () {
render: function () {
return React.createElement("ul", { className: "List" },
this.renderList()
);
Expand Down

0 comments on commit eb1e972

Please sign in to comment.