Perfect timing, will try to use this on my next project!
@tomasburian655012 күн бұрын
Thank you for using TS in your tutorials. You's the best!
@nouarchami90072 күн бұрын
thanks from Algeria so lelpful....
@MadCreatorsAnuj2 күн бұрын
Can you please make a tutorial on the template builder in react js, for which we want nested drag and drop like container inside container
@DaoPVT16 күн бұрын
nice tutorial, thank youuu 💯
@beodan921916 күн бұрын
Very helpful, drag-drop become more easy
@oussamaayadi593616 күн бұрын
Thank you. I have a question is there is any way to drag and drop in middle of elements?
@golden787716 күн бұрын
Needed this one a lot thank you so much.
@euuNeguinho16 күн бұрын
Great content, the Brazilian thanks you
@kamyarkamali768515 күн бұрын
you are the best bro
@Deus-lo-Vuilt16 күн бұрын
Thanks bro ❤
@Fam-m4i14 күн бұрын
If map returns a new array, why do you need to use callback in setState?
@SaiponathGames16 күн бұрын
Will this work for react native as well?
@srkuleo7 күн бұрын
Isn't dnd-kit not maintained anymore? I am sure I've read somewhere that original creator stopped maintaining it or rather is not updating it, so in the future some APIs might not work.
@vijaychapagain64615 күн бұрын
how to do for nested array that can go to root element or to other element meaning (anywhere)
@akoladebode-ajayi32716 күн бұрын
Thanks sir
@ptolemyhenson683816 күн бұрын
How do you maintain order between elements?
@spacey696016 күн бұрын
Its an array of objects that gets mapped and filtered over. Map filter are sequential from first to last, so theres nothing that could change the order, so the order of the tasks gets preserved.
@harsh_g254316 күн бұрын
@@spacey6960 "Map filter are sequential from first to last" i am getting it maintains columns (todo progress and done) but how it is maintaining rows ?
@spacey696016 күн бұрын
@@harsh_g2543 the only separation of items into columns is a column id field in every object, so columns dont actually exist as far as the data in the array is aware. It is not a matrix of elements, just an array of elements. Suppose the original order of items in the array. When a card moves from a column to another, a new object is being created in its place in the array, with all fields equal to the original except the column id. So if item1 was placed before item2 in the array, the new object item3 that has item1's contents and a modified column id will also be before item2 in the array. So moving an item from column to column doesnt change the order, just the column id field in the objects. To split items into columns, you always go from first to last and filter elements by their column id. Since item3 replaced item1, and item1 was before item2, that means item3 is before item2. This means item3 will be filtered before item2. Which means that if item3 and item2 are in the same column, item3 will always be ahead of item2. Moving items into another column doesnt change the order. Splitting the array into columns doesnt change the order. That means there is no reason why cards would change their order.