React Drag And Drop (dnd-kit) | Beginners Tutorial

Поділитися
Вставка
  • Опубліковано 4 лис 2024

КОМЕНТАРІ • 53

  • @Code_Complete
    @Code_Complete  9 місяців тому +3

    Join our Discord server here! discord.gg/TWBtv5an7N

    • @devT44
      @devT44 9 місяців тому +1

      Link is invalid or expired

    • @Code_Complete
      @Code_Complete  9 місяців тому

      @@devT44 My bad! Updated the link👍

    • @shaileshupadhyay8984
      @shaileshupadhyay8984 8 місяців тому

      Hi ​@@Code_Complete
      I am trying to move first item to second item I can't see visual effect of being dragged and dropped

  • @UmaSahni.
    @UmaSahni. 3 місяці тому +3

    The most simple and easy to understand explanation. Salute 🫡🫡 your teaching skill.

  • @yoastertoaster8306
    @yoastertoaster8306 8 місяців тому +3

    Dude I can't even describe to you how much you have helped me. Thank you so much for such a great tutorial, I loved your explanation for using it and the other options. Everything was clear and simple, man you just got a new subscriber.

  • @narendrasudrik7763
    @narendrasudrik7763 Місяць тому +3

    Excellent clarity and just what is needed ! Many thanks. 👍👍

  • @tatatabletennis
    @tatatabletennis 9 місяців тому +1

    Thank god, this channel is there for helping me at right time.

  • @MartinSil-1337
    @MartinSil-1337 4 місяці тому +3

    Finally...3rd tutorial I tried and worked for my Next app. Thank you

    • @Code_Complete
      @Code_Complete  4 місяці тому

      Thanks! Glad the video helped!

    • @gabrielmokhele351
      @gabrielmokhele351 Місяць тому

      Amazing in struggling to drag and drop components saved inside my database

  • @allhailalona
    @allhailalona 3 місяці тому +1

    excellent! thank you for that intro, explaining which package to choose! I liked and subscribed

  • @shubhamtarade
    @shubhamtarade 9 місяців тому +1

    You are gonna long way man. Keep posting such content🙌

  • @michael-in-the-usa
    @michael-in-the-usa 5 місяців тому

    Thank you for posting such an excellent and helpful tutorial. I had no idea how to make a drag and drop in react, but thanks to you I can do it now!

  • @RUFeelin
    @RUFeelin 2 місяці тому

    Video is a great help - good luck getting more subscribers
    Watching from UK

  • @sumitbaghel9987
    @sumitbaghel9987 7 місяців тому +1

    This has helped me a lot.

  • @kaushikid1
    @kaushikid1 9 місяців тому +1

    Good going creator. Can you please teach the basics of coding to Gen X or Bloomers. That would be an interesting video and would help slightly older people like me to understand coding.

  • @SubashK-zc6ip
    @SubashK-zc6ip 28 днів тому

    Excellent explanation !!

  • @hikemalliday6007
    @hikemalliday6007 3 місяці тому

    Very helpful and easy to understand, nice video

  • @MohsinNaqvi-jk5qi
    @MohsinNaqvi-jk5qi 4 місяці тому

    Thanks a lot.
    you explained it amazingly.

  • @karankka1484
    @karankka1484 9 місяців тому +4

    the video was great, can you make a video for kanbanboard using dndkit without typescript. as all the videos on yt for kanbanboard are in typescript

  • @vaibhavpant7041
    @vaibhavpant7041 5 місяців тому

    thank you for such a wonderful tutorial, it helped me a lot.

  • @hunghong9632
    @hunghong9632 6 місяців тому

    What a useful video! Thank you very much 🎉

  • @ArtAssaf
    @ArtAssaf 7 місяців тому +2

    Hello, thanks for the tutorial. But i have an issue, i can't add a clickable element to the draggable element. The onclick doesn't work. For example adding a delete button to a task.
    Thanks

  • @luberalexanderechavarriabe4156
    @luberalexanderechavarriabe4156 6 місяців тому

    Thanks a lot, man, you are a legend

  • @EmmanuelObonyo-k1i
    @EmmanuelObonyo-k1i 14 днів тому

    Many thanks

  • @michealbadmus2146
    @michealbadmus2146 8 місяців тому

    This came in handy. Thanks

  • @sittarashafique3454
    @sittarashafique3454 6 місяців тому

    You did great in this video , thanks a lot 😊

  • @meleseayichlie5645
    @meleseayichlie5645 3 місяці тому

    Thank you for your smart video keep up the good work

  • @sathwiknayak6700
    @sathwiknayak6700 27 днів тому

    00:04 DND kit is recommended for easy and actively maintained drag and drop functionality in React.
    02:00 Setting up DND context and defining collision detection
    04:04 Implementing drag and drop functionality in DND context.
    06:18 Implement drag and drop functionality using DND kit
    08:41 Attaching reference and styling element for drag and drop
    10:50 Implementing drag and drop for task rearrangement
    12:51 Adding different sensors and using them for drag and drop functionalities
    15:13 Adding drag and drop functionality using React's dnd-kit

  • @sangeethasr8654
    @sangeethasr8654 7 місяців тому

    Is there any way to add a button in the Task component to delete a task with an onClick event?

  • @manusiaapi5634
    @manusiaapi5634 4 місяці тому

    Thx a lot bro!

  • @onesome7713
    @onesome7713 2 місяці тому

    Thx!

  • @ritchieways9495
    @ritchieways9495 8 місяців тому

    Thank you, you saved me

  • @gabrielmokhele351
    @gabrielmokhele351 Місяць тому

    Thank but if you drag and dropping components stored inside the database

  • @hazalasmadev
    @hazalasmadev 8 місяців тому +1

    I like the way you describe the code. Thanks a lot! Anyway can you please record a tutorial for react-beautiful-dnd? thanks!

    • @Code_Complete
      @Code_Complete  8 місяців тому +1

      Glad you liked it! Will add react-beautiful-dnd to my list

  • @deepmane5845
    @deepmane5845 3 місяці тому

    as soon as drag and perform make api request using redux save new data after dandd

  • @Rafiramdhani12
    @Rafiramdhani12 8 місяців тому

    why i have an error in props like this 'tasks' is missing in props validation

  • @JITESHPANDEY-qm1og
    @JITESHPANDEY-qm1og 5 місяців тому

    thanks a lot

  • @AdityaSingh-ev7jv
    @AdityaSingh-ev7jv 6 місяців тому +2

    You should have coded this in typescript, in TS things are quite different

    • @bayunirayudha
      @bayunirayudha 4 місяці тому

      .b.i.n.a. .s.a.r.a.n.a. .i.n.f.o.r.m.a.t.i.k.a.

  • @prashantbansal4642
    @prashantbansal4642 3 місяці тому

    Can someone tell how to persist like if I have data in a database and I want to persist the actual order then how to do that.

    • @gunjanpatel3426
      @gunjanpatel3426 3 місяці тому

      give one attribute with values of 1 to n in your database document and use it as id here

  • @tuhei-zu3qx
    @tuhei-zu3qx 4 місяці тому

    good

  • @akshatdubey4421
    @akshatdubey4421 9 місяців тому

    As soon as I spread the listners over my todo component. It becomes unresponsive. Please help

    • @Code_Complete
      @Code_Complete  9 місяців тому

      Does it still happen after you do everything else mentioned in the video? It would be great if you can mention this in the discord server

    • @samnewman9863
      @samnewman9863 8 місяців тому

      @akshatdubey4421 @Code_Complete i think the click handler from useSortable is preventing the default click events, i need to go back through the end of the video to check if there's anything i've missed, but i don't think it's a problem with the steps in the tutorial

    • @samnewman9863
      @samnewman9863 8 місяців тому

      the solution that worked for me is to use an activation constraint, i don't know if that would work if you have a text input, there might be another way to handle that, such as specifying a separate activator node ref

    • @alexmon689
      @alexmon689 7 місяців тому

      ​@@samnewman9863How did you make the restriction?