S
S
Stepan2021-07-31 22:35:57
React
Stepan, 2021-07-31 22:35:57

How to implement Drag And Drop on grid?

I want to make a small toy in react, where it is necessary to drag the cells arranged in the form of a grid onto each other and as a result, when two cells are connected, you get 1 cell, but another one.
I found 2 articles on the learn.javascript.ru site , but everything is there for the mouse, but it is necessary for the phone. I also looked at the react-beautiful-dnd library, but in the examples absolutely everything is tied to lists or boards like Trello. Tell me where to dig or where to look?)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question