DEV Community

Discussion on: Creating an app using Drag and Drop with React without libraries ๐Ÿ‘†!

Collapse
 
franklin030601 profile image
Franklin Martinez

I saw the error!
in the first parameter of the setData function is not just any word but the format of the data to keep, which is** "text"**:

e.dataTransfer.setData('text', `${data.id}`)
Enter fullscreen mode Exit fullscreen mode