Using the OOTB DragDrop.js sharepoint library in a custom web part

I implemented a drag & drop file upload function using the REST api in my web part. But I found the sharepoint dragdrop.js OOTB library that has many methods for creating drag and drop controls. Does anyone have an example of creating a dragdrop control using this OOTB dragdrop.js?

Thanks in advance.

+6
source share

Source: https://habr.com/ru/post/953347/