a react component supporting data list drag to load
npm install flywor-dragloada react component supporting data list drag to load
``shell`
npm install flywor-dragload
`jsx``
import DragLoad from 'flywor-dragload';
import 'flywor-dragload/index.css';
// ...
refresh // callback function, must be return Promise
loadNext // callback function, must be return Promise
pullRate // the pulling speed determines the speed and distance of the upper and lower pulls. default value is 0.3
parentClass // your styles className
refreshClass // your styles className
loadNextClass // your styles className
toTopClass // your styles className
>
{/ Content /}
// ...
example: /debug/demo.jsx