React
hoist-non-react-statics
import hoistReactStatics from 'hoist-non-react-statics';
hoistReactStatics(targetComponent, sourceComponent);
如果某个特定的静态方法你不想提升的话,你可以传第三个参数来将它们排除在外
hoistReactStatics(targetComponent, sourceComponent, { myStatic: true, myOtherStatic: true });
Components
非H5拖拽
react-sortable-hoc
可以配合 virtual 使用。yes
https://www.npmjs.com/package/react-sortable-hoc
http://clauderic.github.io/react-sortable-hoc/#/react-virtualized/elements-of-varying-heights?_k=q1i1ot