Multiple List Drag and Drop in React [Easiest Way]

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

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

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

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

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

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

  • @AyushKumar-po8no
    @AyushKumar-po8no 3 месяца назад

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

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

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

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

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

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

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

  • @NesryaAbdulkadir
    @NesryaAbdulkadir 15 дней назад

    This was Gold❤

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

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

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

    Perfect! no, just great! Thank you!

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

      Thank you so much❤❤❤

  • @Sayan_94
    @Sayan_94 6 дней назад

    Best explanation

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

    Great job!

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

    Nice, which tool do you use for creating presentations?

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

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

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

    you saved my life

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

    Excellent . thanks a lot

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

      Thanks for watching😀❤❤

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

    Superb on point!

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

    Ima use this

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

    Bro You explanation clearly and good

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

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

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

    Just smooth. Amazong.

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

      Thank you so much❤❤❤

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

    very good video thank you very much!

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

    Can I use this for react-native?

  • @vedantgolegaonkar
    @vedantgolegaonkar 5 месяцев назад +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  5 месяцев назад

      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 5 месяцев назад

      @@CodeBlessYou thanks a lot

  • @pratikpattnaik3425
    @pratikpattnaik3425 8 месяцев назад +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  8 месяцев назад +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 8 месяцев назад

      You can use return (index!=activeCard);

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

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

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

    nice tutorial, waiting new videos

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

    Do you have a usereducer version?

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

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

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

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

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

      You can use library for that

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

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

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

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

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

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

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

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

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

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

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

      @@CodeBlessYou now it is working 🎉

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

    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  7 месяцев назад

      I think no. We can't get full opacity

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

    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  6 месяцев назад

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

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

    conditiooooon | aaaaand teeekalook

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

    How can it be nested?

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

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

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

    add "Feature" in your title

  • @gowthamv8778
    @gowthamv8778 19 дней назад

    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  18 дней назад

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

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

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

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

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