Drag and drop in react was a lot easier than I thought

Drag and drop in react was a lot easier than I thought

Web Dev Cody

1 год назад

108,348 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

panagiotis kyriacou
panagiotis kyriacou - 15.10.2023 19:42

imagine that when drop widget tothe left create different categories that group the widget. So also the category component is a drop target. It is possible the category (drop target)be also a draggable item so you can merge two categories?

Ответить
App Stuff
App Stuff - 10.10.2023 13:52

How can we store this new arrangement in a database so it persists?

Ответить
App Stuff
App Stuff - 09.10.2023 09:36

but how do you persist this?

Ответить
ReDestro
ReDestro - 22.09.2023 00:05

Enjoyed this video. Apparently, I'm working on a client project where I'm building a module very similar to DocuSign. I'll be dragging different fields onto the document and assigning users to each field to fill out/sign.

Ответить
Amir Shaban
Amir Shaban - 15.08.2023 22:56

Could someone help me out with making it functional with touchEvents instead of dragEvents?

Ответить
Ifeanacho Favour
Ifeanacho Favour - 11.08.2023 17:04

Hi that is really cool and I do currently have need for a drag and drop implementation.
Wanted to ask if you could attach a link to the documentation for this.
Hoping to hear from you soon. Thanks

Ответить
MubashirullahD
MubashirullahD - 07.08.2023 04:40

That was so cool. And Im actually going to use for a professional use case. Need to build something to match pictures with words.

Ответить
Jorim S
Jorim S - 03.08.2023 16:01

nice idea with using the state and just appending elements. However, the usecase for this is very limited. If the position (order) matters in which I would drag my element in, it would obviously not work.

Ответить
Ayush Bobale
Ayush Bobale - 30.07.2023 16:54

That was suprisingly easy thanks a lot and easy to build upon

Ответить
Matthias
Matthias - 20.07.2023 19:42

this is amazing, i thought i would need to use some lib todo that but with knowing these events its actually pretty easy todo it on you own

Ответить
Mahmoud Bany amer
Mahmoud Bany amer - 15.07.2023 18:40

you made it look so easy great work!

Ответить
WayToNirvana
WayToNirvana - 10.07.2023 13:50

clean and helpfull thank you

Ответить
ilovelctr
ilovelctr - 03.07.2023 12:22

Wow, thanks a ton for this splendid tutorial! I didn't think this could be implemented using such exquisitely clean code, and thought that it might end up as equally annoying as if otherwise built via vanilla JavaScript and real DOM manipulation. Absolutely appreciate how elegant this is.

Ответить
Shivam Karn
Shivam Karn - 29.06.2023 20:51

Easier than I expected, thanks! Subscribed

Ответить
oddsquadd
oddsquadd - 28.06.2023 16:47

the issue is that it is not working with mui icons

Ответить
Siva Nalavenkata
Siva Nalavenkata - 20.06.2023 12:41

So much easier to understand. Thank you. You saved me the trouble of going with react-dnd or dnd-kit which are very sophisticated, but overkill. As long as we don't need mobile or too much cross browser compatibility ( for example, internal websites), this is more than enough.

Ответить
Criztian Jade Tuplano
Criztian Jade Tuplano - 06.06.2023 11:20

Hi I just want to ask, how about free drag, could you make a video about it ?

Ответить
Michele Di Benedetto
Michele Di Benedetto - 26.05.2023 12:13

Nice tutorial, well explained, although this implementation, which the native Drag&Drop,
is pointless since since is not supported on mobile devices.
In other words, lets be honest, we gonna need third party libraries for ever 😂

Ответить
Ana González
Ana González - 19.05.2023 01:02

is this react-dnd or react-beautiful-dnd ?

Ответить