Multiple List Drag and Drop in React [Easiest Way]

Поделиться
HTML-код
  • Опубликовано: 9 фев 2025
  • 🎓Get free access to my upcoming Ultimate Node.js Course for the first 100 students: forms.gle/8m9X... 🚀
    Let's see how to implement drag and drop feature in React application. In this tutorial, we will not use any library. We will use HTML5 drop events to create React drag and drop.
    🚀Access My Complete React JS Course: www.udemy.com/...
    💌Join my FREE Email News Letter for updates: codeblessyou.c...
    Resources for this Application - drive.google.c...
    🤩MY FAVORITE TOOLS & GEARS
    Height Adjustable Desk - amzn.to/42qPZkb
    Old Desk in Budget - amzn.to/3UlaFbm
    Favorite Laptop - amzn.to/3OrqmKa
    LG Monitor for Productivity - amzn.to/3uqA5tv
    Silent Keyboard(Loved It) - amzn.to/3UjagGv
    Mouse & Keyboard Combo - amzn.to/3Sq50hs
    Extra Large Mouse Pad - amzn.to/48Nhcjv
    Sony Headphones - amzn.to/3HHjYed
    Cheap Earphones for Editing - amzn.to/48eBykN
    Daily Use Laptop Stand - amzn.to/3Uj8JQL
    Mini Speakers for Consuming Content - amzn.to/48YgAaK
    Mport X Connector - amzn.to/3UoHsML
    Mic - amzn.to/48eCrtD
    3 Color Lightbar - amzn.to/42qgaaW
    Dual Monitor Stand - amzn.to/48Nixa1
    Stop Watch for Productivity - amzn.to/3Un1RBW
    Dotted Diary - amzn.to/3vYBWq1
    Write in comment section, Which extension you will use for the future React Project.
    ⏬Music & Sound Effects from: share.epidemic...
    Copyright
    Arrow - www.flaticon.c...
    Grab - iconduck.com/i...
    Social Media Links
    🚀COURSES : www.udemy.com/...
    💌News Letter : codeblessyou.c...
    🤩INSTAGRAM : / code_blessyou
    💙FACEBOOK : / 100077716056158
    🐦TWITTER : / code_blessyou
    😎LINKEDIN : / code-bless-you-5b76822b
    Tags
    code bless you,react drag and drop,drag and drop react,react drag and drop no library,drag and drop,react drag and drop list,drag and drop javascript,react,drag and drop react js,drag and drop in react,react drag and drop tutorial,drag and drop tutorial,react drag & drop,how to react drag and drop,react drag and drop examples,how to react drag and drop list,reactjs drag and drop,how to react js drag and drop,react drag and drop image upload

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

  • @CodeBlessYou
    @CodeBlessYou  8 месяцев назад

    💙Register for FREE Git and Github Course - forms.gle/U4cnzMX1EkWPHdX89

  • @narendrasudrik7763
    @narendrasudrik7763 4 месяца назад +4

    Excellent! neat and clean. No unnecessary complex info. Just enough and perfect to the point. Many thanks. 👍👍

  • @AyushKumar-po8no
    @AyushKumar-po8no 4 месяца назад +1

    This is a gem. I was not expecting it to be this good.

  • @youngzproduction7498
    @youngzproduction7498 3 месяца назад

    Thanks. I can finish my feature by watching your clip. :D I hope to see more of your great lessons.

  • @wannabe_Akshat
    @wannabe_Akshat 10 месяцев назад +2

    Beautifully explained ❤ Will surely use this in my future projects 🙌🏻

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

      Glad to hear that. Thank you so much❤❤❤

  • @NesryaAbdulkadir
    @NesryaAbdulkadir Месяц назад

    This was Gold❤

  • @luxia0024
    @luxia0024 7 месяцев назад +1

    Thank you so much for this !!! good teach, good explain, good video 😇🙏

  • @SonRayS
    @SonRayS 8 месяцев назад +1

    Perfect! no, just great! Thank you!

    • @CodeBlessYou
      @CodeBlessYou  8 месяцев назад

      Thank you so much❤❤❤

  • @pelumini
    @pelumini 4 месяца назад

    Great job!

  • @VodShod
    @VodShod 10 часов назад

    anyone know a program like the one he is making that is on the market?
    I want to organize my tasks in order of importance and having multiple lists side by side with the ability to drag and drop the items between them seems rather useful in this situation.

  • @Sayan_94
    @Sayan_94 Месяц назад

    Best explanation

  • @akshitkapoor1039
    @akshitkapoor1039 3 месяца назад

    you saved my life

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

    Superb on point!

  • @bencipherx
    @bencipherx 4 месяца назад

    Ima use this

  • @hari_the_lazyprogrammer
    @hari_the_lazyprogrammer 5 месяцев назад

    Excellent . thanks a lot

    • @CodeBlessYou
      @CodeBlessYou  5 месяцев назад

      Thanks for watching😀❤❤

  • @DoheSeGyaan
    @DoheSeGyaan 4 месяца назад

    Nice, which tool do you use for creating presentations?

    • @CodeBlessYou
      @CodeBlessYou  4 месяца назад

      It is not presentation, It is animation of After Effects (Adobe)

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

    Just smooth. Amazong.

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

      Thank you so much❤❤❤

  • @clashcon11
    @clashcon11 3 месяца назад

    Can I use this for react-native?

  • @vedantgolegaonkar
    @vedantgolegaonkar 6 месяцев назад +1

    @CodeBlessYou Thank you for this amazing tutorial. I have encountered a bug in this application. Suppose I dragged all the tasks in any of the sections. Lets say I dragged all the tasks into doing section. Now at this point I cannot drag the tasks into another section. In short when the section is empty we cannot drop the task to that section. I hope you would address this and help solve this bug asap. Thanks a lot

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

      You can drop task into empty column. But it is on the very top. If you slowly drag your card, you will get that. You can put condition to make it bigger.

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

      @@CodeBlessYou thanks a lot

  • @allhailalona
    @allhailalona 8 месяцев назад

    very good video thank you very much!

  • @dangetiharibabu886
    @dangetiharibabu886 9 месяцев назад

    Bro You explanation clearly and good

    • @CodeBlessYou
      @CodeBlessYou  9 месяцев назад

      Thank you so much. Glad to hear that❤❤❤

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

    I thought drag on drop feature is only possible with the library. Thank you for the good content.

  • @pratikpattnaik3425
    @pratikpattnaik3425 10 месяцев назад +2

    First i used this:
    const updatedTasks = tasks.filter((task, index) => {
    index !== activeCard;
    });
    and then i dragged a card but everything else got erased. But when i removed curly braces and ; in the arrow function and it worked fine. Can u explain why

    • @CodeBlessYou
      @CodeBlessYou  10 месяцев назад +1

      because in callback function, we have to return condition. And if you add curly brackets then you have to do return index !== activeCard; So that's why in short we can directly write index !== activeCard without curly brackets.

    • @HarshaVardhan-fu9kv
      @HarshaVardhan-fu9kv 9 месяцев назад

      You can use return (index!=activeCard);

    • @ASMITPHUYAL-y2i
      @ASMITPHUYAL-y2i 3 месяца назад

      yeah, had the same issue
      you helped me, thanks !

  • @mutantXfrog
    @mutantXfrog 5 месяцев назад

    Do you have a usereducer version?

  • @coppergold2916
    @coppergold2916 9 месяцев назад +1

    I followed your code and couldn't get drag to work on an empty column. (aka drag to an empty column)

    • @CodeBlessYou
      @CodeBlessYou  9 месяцев назад

      Check where you are getting drop here area in your empty column. And style according to that❤❤❤

    • @krishparmar7917
      @krishparmar7917 8 месяцев назад

      did you fix this issue? if yes then how!!

    • @krishparmar7917
      @krishparmar7917 8 месяцев назад

      @@CodeBlessYou i did not get it. can you explain how can we do that?

    • @CodeBlessYou
      @CodeBlessYou  8 месяцев назад

      @@krishparmar7917 You have to drag that box to the very top of the empty column. Then it works

    • @krishparmar7917
      @krishparmar7917 8 месяцев назад

      @@CodeBlessYou now it is working 🎉

  • @ТетянаХомяк-ь8п
    @ТетянаХомяк-ь8п 7 месяцев назад

    as always a great job! how to implement drag and drop for mobiles?

    • @CodeBlessYou
      @CodeBlessYou  7 месяцев назад +1

      You can use library for that

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

    can we implement below as well if yes then please make video or give some suggestion
    after drag and drop make api call save the changed data on server fetch it and show it ui using redux
    same again items are draged and droped in other compnent make api call save the changed data on server fetch it and show it ui using redux ..... goes on as per user decide

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

      These are two different topics. If you want to call api after dropping the card then call the api in that dropped function :)

  • @ewerpop
    @ewerpop 8 месяцев назад

    nice tutorial, waiting new videos

  • @bede114
    @bede114 8 месяцев назад

    Hey man, is there any way to make the opacity of the dragging component 100% , I'm trying it still not getting full opacity!!

    • @CodeBlessYou
      @CodeBlessYou  8 месяцев назад

      I think no. We can't get full opacity

  • @conganh9556
    @conganh9556 3 месяца назад

    How can it be nested?

    • @CodeBlessYou
      @CodeBlessYou  3 месяца назад

      I don't understand your question. Can you explain that?

  • @Andi0391
    @Andi0391 9 месяцев назад

    conditiooooon | aaaaand teeekalook

  • @user-Amankhowal
    @user-Amankhowal 8 месяцев назад +3

    add "Feature" in your title

  • @gowthamv8778
    @gowthamv8778 Месяц назад

    import React, { useState } from "react";
    const DropArea = () => {
    const [showDropArea, setShowDropArea] = useState(false);
    return (
    setShowDropArea(true)}
    onDragLeave={() => setShowDropArea(false)}
    >
    );
    };
    export default DropArea;
    onDragEnter is not capturing

    • @CodeBlessYou
      @CodeBlessYou  Месяц назад

      check it's CSS is working or not. Because name is different drop_area and hide_drop.

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

    i already submit the form.. please send me the source code ! im begging you, or i will get fired !

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

      It is already available in the Resources folder. Here or on my Udemy Course.