diff --git a/README.md b/README.md index 14f90ad..44192f9 100644 --- a/README.md +++ b/README.md @@ -386,14 +386,14 @@ var SortableList = React.createClass({ render: function() { return } }); -React.render(, document.body); +ReactDOM.render(, document.body); // @@ -409,17 +409,18 @@ var AllUsers = React.createClass({ }, getInitialState: function() { - return { users: ['Abbi', 'Adela', 'Bud', 'Cate', 'Davis', 'Eric']; }; + return { users: ['Abbi', 'Adela', 'Bud', 'Cate', 'Davis', 'Eric'] }; }, render: function() { - return ( -

Users

- + return (
+

Users

+
    { + this.state.users.map(function (text, i) { + return
  • {text}
  • + }) + }
+
); } }); @@ -429,19 +430,19 @@ var ApprovedUsers = React.createClass({ sortableOptions: { group: "shared" }, getInitialState: function() { - return { items: ['Hal', 'Judy']; }; + return { items: ['Hal', 'Judy'] }; }, render: function() { return } }); -React.render(
+ReactDOM.render(