We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1776dc4 commit 64be87fCopy full SHA for 64be87f
1 file changed
README.md
@@ -113,6 +113,17 @@ const sortableOptions = {
113
export default Sortable(sortableOptions)(MySortableList);
114
```
115
116
+You can also use HOCs as ES7 decorators:
117
+```js
118
+import React from 'react';
119
+import Sortable from 'react-sortablejs';
120
+
121
+@Sortable({ ref: 'list', model: 'items' })
122
+export default class SortableList extends React.Component {
123
+ ...
124
+}
125
+```
126
127
## Examples
128
129
### Simple List
0 commit comments