Skip to content

Commit af9645b

Browse files
committed
Use generator syntax to support decorator
1 parent e914b32 commit af9645b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ const extend = (target, ...sources) => {
4040
return target;
4141
};
4242

43-
const SortableMixin = (Component, sortableOptions = defaultOptions) => class extends React.Component {
43+
const SortableMixin = (sortableOptions = defaultOptions) => (Component) => class extends React.Component {
4444
sortableInstance = null;
4545
sortableOptions = sortableOptions;
4646

0 commit comments

Comments
 (0)