From 18d32b67ab08425a4fe8ff74d35ea05ebe2f19e1 Mon Sep 17 00:00:00 2001 From: Cyril Auburtin Date: Tue, 3 Nov 2015 19:02:12 +0100 Subject: [PATCH 1/2] few errors thrown by react0.14 ref={i} for https://facebook.github.io/react/docs/multiple-components.html#dynamic-children --- README.md | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index 14f90ad..45f9a5e 100644 --- a/README.md +++ b/README.md @@ -386,8 +386,8 @@ var SortableList = React.createClass({ render: function() { return } @@ -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

+ +
); } }); @@ -429,13 +430,13 @@ var ApprovedUsers = React.createClass({ sortableOptions: { group: "shared" }, getInitialState: function() { - return { items: ['Hal', 'Judy']; }; + return { items: ['Hal', 'Judy'] }; }, render: function() { return } From e4ea76ca68f5cb0fea5c00e375b23f50985760da Mon Sep 17 00:00:00 2001 From: Cyril Auburtin Date: Tue, 3 Nov 2015 20:00:51 +0100 Subject: [PATCH 2/2] Update README.md --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 45f9a5e..44192f9 100644 --- a/README.md +++ b/README.md @@ -393,7 +393,7 @@ var SortableList = React.createClass({ } }); -React.render(, document.body); +ReactDOM.render(, document.body); // @@ -442,7 +442,7 @@ var ApprovedUsers = React.createClass({ } }); -React.render(
+ReactDOM.render(