Skip to content

Commit 05c61e4

Browse files
committed
Pass the state into child component as props
1 parent 964c3ec commit 05c61e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/index.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ const SortableMixin = (options = defaultOptions) => (Component) => class extends
149149

150150
render() {
151151
return (
152-
<Component ref={refName} sortableInstance={this.state.sortableInstance} {...this.props} />
152+
<Component ref={refName} {...this.props} {..this.state} />
153153
);
154154
}
155155
};

0 commit comments

Comments
 (0)