React Drag And Drop Tutorial - React-DND Made Simple

Поделиться
HTML-код
  • Опубликовано: 11 ноя 2024

Комментарии • 101

  • @svaibavbajra
    @svaibavbajra 3 года назад +6

    Wanted to learn React DnD, saw his name, watched the video, totally worth it. This man is a fucking legend

  • @fancyAlex1993
    @fancyAlex1993 2 года назад +20

    Thank you very much for making this tutorial and not making it a living nightmare to follow. The authors of React Dnd should really take note on how to make a simple tutorial like this. Clean and precise! Not telling us on his thought process while making a tutorial.
    Example : "Why A8 instead of A1? To match the browser coordinate orientation. I tried it another way and it just messed with my head too much." This is from docs, something we don't really need to know. Moreover, in the docs , it goes into three different wrong ways before doing it the correct way. All we need is the correct working examples. Moreover, it was so hard to follow and not sure where was it taking us.

  • @FrodosBeutel
    @FrodosBeutel Год назад +3

    Finally a tutorial that doesn't explain stuff for 20 mins just to add 5 min drag and drop at the end

  • @carinwood1206
    @carinwood1206 Год назад

    Best tutorial on Dnd that I've found on RUclips.

  • @mwnkt
    @mwnkt 3 года назад +6

    it's like you were reading my mind. I was about to search for this and you did a video on it, thanks, keep up the good work.

    • @rabiaimran9027
      @rabiaimran9027 3 года назад +2

      haha yes me too

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +2

      Hahaha I don't know why I decided to make this video! The idea just came to my mind!

    • @musmanathar3608
      @musmanathar3608 3 года назад +1

      @@PedroTechnologies i was searching same work for the last three days
      and you came like a miracle, you helped me a lot, I need one more help, can we move div instead of pictures.please suggest me

  • @shahidrizwan6903
    @shahidrizwan6903 3 года назад +3

    Your videos make me love ReactJs more. Keep up the good work, Pedro.

  • @blakef.8566
    @blakef.8566 2 года назад +5

    Had a bit of trouble getting started from the docs. This is was incredibly helpful. Thanks!

  • @rooneyjohn
    @rooneyjohn Год назад

    I love no-nonsense tutorials! I couldn't agree more with Alex Fancy.... just the fact please! (it's why I subscribed to your channel... keep up the no bullshit tutorials!)

  • @pegihr
    @pegihr 3 года назад +9

    Hi pedro, it’s was a long time I haven’t watched your video. I've been busy working on several projects for the past few months. thanks for the videos so far. From your video I started to learn React. although furthermore I'm looking for other references, but your content is what makes me interested in React which my current project is mostly React.

    • @PedroTechnologies
      @PedroTechnologies  3 года назад +2

      That is awesome! Always diversify your resources :) I am happy to hear I helped you learn!

    • @DeepakSharma-tr2ny
      @DeepakSharma-tr2ny Год назад

      @@PedroTechnologies Hello, How can we drag back the items from container to their initial position. for example we mistakenly drag some items then how can we drag back the same? please help

  • @gilgameshgaming4210
    @gilgameshgaming4210 2 года назад

    Thank you for simplifying the library, hope you have wonderful day/evening

  • @anoop7133
    @anoop7133 Год назад

    Thanks alot for this wonderful video of DnD .. As u mentioned in the video, I couldn't understand it properly at first. But the way u explained was so great and it will be more helpful when u watch it two or three times. Keep going brother....

  • @alexmir9878
    @alexmir9878 Год назад

    Thank you for it, without you the topic was scary and I could not do it for a week 🙏

  • @AdamsApples46
    @AdamsApples46 3 года назад +2

    yo PT, thanks for the clear and concise explanation on the basics of react dnd

  • @erentr7167
    @erentr7167 2 года назад +2

    Thank you for a great tutorial! there wasnt enough documentation for dnd and this video really helped me alot!

  • @SarathChandran96
    @SarathChandran96 2 года назад

    Thank you so much brother. Really helped me . I was given a tough task in my company . This really helped me.

  • @DIVYANSHMNIT
    @DIVYANSHMNIT Год назад +1

    Great efforts man. You nailed it!

  • @gianguyenngo4176
    @gianguyenngo4176 3 года назад

    Your explaination is better than Dnd docs. You save my day. Thank you =)

  • @yegorm3029
    @yegorm3029 2 года назад +1

    Thanks for the great tutorial! It helped me greatly with the implementation of dnd in my React learning project!

  • @millery9405
    @millery9405 Год назад

    It's quiet useful tutorial for beginners. Thank you for the video buddy!

  • @romimaximus
    @romimaximus 3 года назад +1

    This would be nice to do a App project management like Trello, and save to elements positions to a database, do you think you could a video tutorial example like that ?

  • @cristianhoger
    @cristianhoger 2 года назад

    thanks for the video, finally I could implement a working drag and drop

  • @tamarlola
    @tamarlola Год назад

    Professional and good tutorial !
    I would appreciate it if you could upload a guide that explains how the user can change the order of the images after they have been uploaded to the drag area.

  • @pjcodes438
    @pjcodes438 3 года назад +1

    Your explanation was simply awesome man, keep up the good work :)

  • @ZhangYangbiao
    @ZhangYangbiao Год назад

    thanks for your effort in this tutorial, it's very helpful to understand dnd!

  • @holycrocs3670
    @holycrocs3670 Год назад +1

    your tutorials are so helpful, thank you for making them!

  • @artem.matseruk
    @artem.matseruk 3 года назад +1

    Pedro, your video was very useful, thanks for the tutorial, and good luck =)

  • @MoathElmarmori
    @MoathElmarmori Год назад

    You are a legend, thank you so much

  • @billynitrus
    @billynitrus Год назад

    Very good tutorial, efficient, engaging, and well explained

  • @weijunhuang8306
    @weijunhuang8306 2 года назад

    very useful video, the concept is pretty clearing

  • @abonoah-3495
    @abonoah-3495 3 года назад

    Thanks a lot, you have survived me with this awesome video!

  • @mateusgoulart3120
    @mateusgoulart3120 6 месяцев назад

    Thanks brother, youre the best!!

  • @nickkeller9314
    @nickkeller9314 2 года назад +2

    Thanks, awesome content ;) But what if I need to drop my elements to a relative container, that keeps element's position wherever I dropped them? Can you give me an advise please?

  • @utkarshsharma1185
    @utkarshsharma1185 Год назад +1

    Thanks pedro

  • @ol1175
    @ol1175 3 года назад +2

    Thanks Pedro, would be really nice if u explain Redux.
    Looks so complicated:(
    Thanks for vids👍

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      Hahaha I usually don't use Redux. However I had to learn it for my job so maybe I can make a video on it

  • @Chris-rw3rz
    @Chris-rw3rz 3 года назад

    Pedro, your video was very useful. have a nice day :)

  •  2 года назад

    Thanks! It was simple enough

  • @oliboucher6624
    @oliboucher6624 7 месяцев назад

    I would like to be able to only drag an item once, we can actually drag an item that is in the board or not multiple time… how could I do it??

  • @shubhamsnehi5890
    @shubhamsnehi5890 3 года назад

    This video helped me a lot!

  • @omerfaran8514
    @omerfaran8514 2 года назад

    Hey Pedro I think they probably changed stuff in their library because now when dragging the image, it shows a cursor of "forbidden" and if you drop it outside of the left container it won't do an animation of the image going back to its original place...This is at least for me in Chrome

  • @_hugo_cruz
    @_hugo_cruz Год назад

    Great bro!!! Thanks a lot!!

  • @osmansagsoz9701
    @osmansagsoz9701 2 года назад

    thank you! this helped a lot.

  • @lucienchu9649
    @lucienchu9649 2 года назад

    Good intro already, thanks

  • @gonzalolezodecordova9825
    @gonzalolezodecordova9825 Год назад

    Hi Pedro. That was GREAT!! Could you male a tutorial with this same DND for the following case including a clickon so that when I click on the image once on the dropped area, it returns to its original place? For example: I have three boxes: Box 1: My, Box 2: Name and box 3 : is Carlos. But they are in an unordered manner and I want my student to drag and drop them on the dropping area correctly. In addition, I want to move them around in the dropping area and also to make any of them return to the original area when I click on them. THX!!!

  • @benzz22126
    @benzz22126 2 года назад

    hi this was the best explanation for the dnd module. is there a way to persist that newly sorted array in mongodb? I have a todolist and i want it to be dnd...but as soon as i restart my page...my order is reset to default.

  • @Todiros
    @Todiros 2 года назад

    How do I get data from the drop container? I have a bunch and I need to know exactly which one I'm dropping at. I can only get the 'id' of the element being dragged but not on the drop target.

  • @ThColinPereira
    @ThColinPereira 3 года назад

    whoa this is an absolute banger

  • @nabeelamer4525
    @nabeelamer4525 Год назад

    while droppping images are not getting dropped what could be the issue?

  • @deniseleinonen6095
    @deniseleinonen6095 Год назад

    I put the DndProvider component in app.tsx and then when I started the app I got this error:
    ERROR in ./node_modules/react-dnd/dist/core/DndProvider.js 28:0-48
    Module not found: Error: Can't resolve 'react/jsx-runtime' in '...........app
    ode_modules
    eact-dnd\dist\core'
    Did you mean 'jsx-runtime.js'?
    BREAKING CHANGE: The request 'react/jsx-runtime' failed to resolve only because it was resolved as fully specified
    (probably because the origin is strict EcmaScript Module, e. g. a module with javascript mimetype, a '*.mjs' file, or a '*.js' file where the package.json contains '"type": "module"').
    The extension in the request is mandatory for it to be fully specified.
    Add the extension to the request.
    Has anyone else got the same problem? And how did you managed to fix the problem? I'm working on react version 17

  • @kokilanadar486
    @kokilanadar486 3 года назад

    this video was really useful! ❤ but could you help me? i wanted to drop the same image multiple times onto the board,, what should I do?

  • @michaelrooze278
    @michaelrooze278 2 года назад

    I am trying to drop items on to a mapped grid but I don't know how to let it know which square I am dropping to. Any ideas?

  • @seifhorrigue2977
    @seifhorrigue2977 2 года назад

    hey pedro thanks for the video it was amazing , i wan't to ask you how can i keep the place of the dropped image in the right place i wan't it to be on the board ?

  • @asfnobambu
    @asfnobambu Год назад

    After the "npm i", the "npm start" did not run. So this is not working anymore...

  • @duajan8651
    @duajan8651 2 года назад

    that was a really really good tutorial

  • @hamidrezanaji9253
    @hamidrezanaji9253 Год назад

    what if I have 2 boards ? How can i do it which board has been chosen?

  • @zyzhangsiyuan7292
    @zyzhangsiyuan7292 2 года назад

    thanks I learned a lot

  • @MJstart
    @MJstart Год назад

    Thank you so much man

  • @davidwang7206
    @davidwang7206 3 года назад

    Hey Pedro, do you know why dropping is not working on Firefox (but works perfectly on Chrome/Safari) ? The image appears in the middle of the screen and the server does not work anymore :(

  • @saidmaroc8448
    @saidmaroc8448 3 года назад

    difficult for me, but well explained, thank you

  • @dravidmrdj5156
    @dravidmrdj5156 2 года назад

    Thank you bro!

  • @yashsinha2872
    @yashsinha2872 2 года назад

    Hii
    Can we get the coordinates of x and y axis as well for the image drop in any position of that div???

  • @_carlaque
    @_carlaque 2 года назад +1

    excelente video!!! parabens e valeu pelo conteudo massa, tem me ajudado muito no desenvolvimetno do meu tcc

  • @musmanathar3608
    @musmanathar3608 3 года назад

    hy there, thanks for this , i need same code for a drag and drop of div in another div, what will be the changes?
    please suggest me

  • @marwa_als
    @marwa_als Год назад

    Can I use this way now , or it have a new way

  • @jittojoyes7533
    @jittojoyes7533 Год назад

    Can you do more videos on this also for beautiful dnd

  • @sercanyildirimtugcann
    @sercanyildirimtugcann 3 года назад

    Is there anything in DND to create my own emoji rating people can drag and drop on the form easily? Can I do that easily?

  • @coronelkurtz
    @coronelkurtz 3 года назад +1

    Hi Pedro I love ur content my dude, you pulled me again into coding. I have one question: How can I make separated Css files for each page? Right now I have homepage with "register" page styles too. is there any solution? Thanks!!

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      That makes me happy! You can create separate css files and just import them inside of the page component you want. Ex: inside of the home page component you can do somehing like import './Home.css'

    • @mwnkt
      @mwnkt 3 года назад

      Using SCSS is amazing , you could just give the main div being rendered a className and the only style items inside that div. The styles shouldn't be used in any other file like that. If it helps.

  • @gregoryzhang743
    @gregoryzhang743 3 года назад

    Very nice one, thanks

  • @travel_worldwide_365
    @travel_worldwide_365 3 года назад

    Nice explanation.

  • @hishamahammmedkm1936
    @hishamahammmedkm1936 3 года назад

    iam happy to see you

  • @S--xc4rv
    @S--xc4rv Год назад

    is there any video of your on beautifil-dnd

  • @shovanmazumder1013
    @shovanmazumder1013 2 года назад

    Please show how to remove the item from list after dropping

  • @thedevhacker4608
    @thedevhacker4608 3 года назад

    Love you dude

  • @fahmifirmansyah3857
    @fahmifirmansyah3857 3 года назад

    Thank you sir

  • @zerobyte64
    @zerobyte64 Год назад

    thanks bro

  • @Декопитатор321
    @Декопитатор321 3 года назад

    thanks a lot bro))

  • @tanyanagi9561
    @tanyanagi9561 2 года назад

    It is amazing one

  • @حسیننهالی-و7ق
    @حسیننهالی-و7ق 2 года назад

    very good

  • @sanketgole4199
    @sanketgole4199 3 года назад +3

    Make small project on nodejs mongoose reactjs product details uploaded

    • @PedroTechnologies
      @PedroTechnologies  3 года назад

      It has been a while since I made a video using mongo, might do one :)

  • @zloi_mishka
    @zloi_mishka 10 месяцев назад

    U get {isDragging} but didn’t use

  • @mickafilms
    @mickafilms Год назад

    sa e ke?

  • @thecreepynation3599
    @thecreepynation3599 8 месяцев назад +2

    The intro is too short. Can you make it like 80% of the actual video?

  • @DiegoWahl
    @DiegoWahl Год назад

    bom video 👍

  • @chesswithben832
    @chesswithben832 Год назад

    Hi i have a question about using drag and drop for my chess game just wondering if you could send me down the right track of what to do , the chess pieces move back to there original spot once moved and are then updated to the new spot, i want to drop them in the square and leave them their , easier explained in the video ruclips.net/video/7lpWt3hM0AQ/видео.html

  • @NeoCoding
    @NeoCoding Год назад

    tnx. don't like that, too complicated

  • @offthecliffwithshizzy4944
    @offthecliffwithshizzy4944 2 года назад

    ERROR in ./node_modules/react-dnd/dist/core/DndProvider.js
    i get this error and i am using react 17.0.2