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
{
- this.state.items.map(function (text) {
- return - {text}
+ this.state.items.map(function (text, i) {
+ return - {text}
})
}
}
@@ -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
- {
- this.state.users.map(function (text) {
- return - {text}
- })
- }
+ return (
+
Users
+
{
+ this.state.users.map(function (text, i) {
+ return - {text}
+ })
+ }
+
);
}
});
@@ -429,13 +430,13 @@ var ApprovedUsers = React.createClass({
sortableOptions: { group: "shared" },
getInitialState: function() {
- return { items: ['Hal', 'Judy']; };
+ return { items: ['Hal', 'Judy'] };
},
render: function() {
return {
- this.state.items.map(function (text) {
- return - {text}
+ this.state.items.map(function (text, i) {
+ return - {text}
})
}
}