diff --git a/README.md b/README.md
index 2d6417f..4bbe34f 100644
--- a/README.md
+++ b/README.md
@@ -285,7 +285,7 @@ angular.module('myApp', ['ng-sortable'])
### Support React
Include [react-sortable-mixin.js](react-sortable-mixin.js).
-See more [here](react-sortable-mixin.js#L37).
+See [more options](react-sortable-mixin.js#L26).
```jsx
@@ -298,6 +298,8 @@ var SortableList = React.createClass({
};
},
+ onSort: function (/** Event */evt) { /*..*/ },
+
render: function() {
return
{
this.state.items.map(function (text) {
@@ -308,6 +310,58 @@ var SortableList = React.createClass({
});
React.render(, document.body);
+
+
+//
+// Groups
+//
+var AllUsers = React.createClass({
+ mixins: [SortableMixin],
+
+ sortableOptions: {
+ ref: "user",
+ group: "shared",
+ model: "users"
+ },
+
+ getInitialState: function() {
+ return { users: ['Abbi', 'Adela', 'Bud', 'Cate', 'Davis', 'Eric']; };
+ },
+
+ render: function() {
+ return (
+ Users
+ {
+ this.state.users.map(function (text) {
+ return - {text}
+ })
+ }
+ );
+ }
+});
+
+var ApprovedUsers = React.createClass({
+ mixins: [SortableMixin],
+ sortableOptions: { group: "shared" },
+
+ getInitialState: function() {
+ return { items: ['Hal', 'Judy']; };
+ },
+
+ render: function() {
+ return {
+ this.state.items.map(function (text) {
+ return - {text}
+ })
+ }
+ }
+});
+
+React.render(, document.body);
```
diff --git a/react-sortable-mixin.js b/react-sortable-mixin.js
index 72a215d..fb99379 100644
--- a/react-sortable-mixin.js
+++ b/react-sortable-mixin.js
@@ -23,7 +23,6 @@
var _activeComponent;
-
var _defaultOptions = {
ref: 'list',
model: 'items',