Drag and Drop in React (Complete Tutorial)

  Рет қаралды 11,320

Cosden Solutions

Cosden Solutions

Күн бұрын

Пікірлер: 24
@edward-vonschondorf-dev
@edward-vonschondorf-dev 15 күн бұрын
Perfect timing, will try to use this on my next project!
@tomasburian6550
@tomasburian6550 12 күн бұрын
Thank you for using TS in your tutorials. You's the best!
@nouarchami9007
@nouarchami9007 2 күн бұрын
thanks from Algeria so lelpful....
@MadCreatorsAnuj
@MadCreatorsAnuj 2 күн бұрын
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
@DaoPVT
@DaoPVT 16 күн бұрын
nice tutorial, thank youuu 💯
@beodan9219
@beodan9219 16 күн бұрын
Very helpful, drag-drop become more easy
@oussamaayadi5936
@oussamaayadi5936 16 күн бұрын
Thank you. I have a question is there is any way to drag and drop in middle of elements?
@golden7877
@golden7877 16 күн бұрын
Needed this one a lot thank you so much.
@euuNeguinho
@euuNeguinho 16 күн бұрын
Great content, the Brazilian thanks you
@kamyarkamali7685
@kamyarkamali7685 15 күн бұрын
you are the best bro
@Deus-lo-Vuilt
@Deus-lo-Vuilt 16 күн бұрын
Thanks bro ❤
@Fam-m4i
@Fam-m4i 14 күн бұрын
If map returns a new array, why do you need to use callback in setState?
@SaiponathGames
@SaiponathGames 16 күн бұрын
Will this work for react native as well?
@srkuleo
@srkuleo 7 күн бұрын
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.
@vijaychapagain646
@vijaychapagain646 15 күн бұрын
how to do for nested array that can go to root element or to other element meaning (anywhere)
@akoladebode-ajayi327
@akoladebode-ajayi327 16 күн бұрын
Thanks sir
@ptolemyhenson6838
@ptolemyhenson6838 16 күн бұрын
How do you maintain order between elements?
@spacey6960
@spacey6960 16 күн бұрын
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_g2543
@harsh_g2543 16 күн бұрын
@@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 ?
@spacey6960
@spacey6960 16 күн бұрын
@@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.
@immityaaa
@immityaaa 16 күн бұрын
Nice❤
@swapnilkatiyar8927
@swapnilkatiyar8927 16 күн бұрын
Wow,
@codeinspector
@codeinspector 15 күн бұрын
killer
@irfansaeedkhan7242
@irfansaeedkhan7242 16 күн бұрын
niceeee
How To Handle Permissions Like A Senior Dev
36:39
Web Dev Simplified
Рет қаралды 143 М.
Angular v19 Developer Event
22:54
Angular
Рет қаралды 45 М.
Twin Telepathy Challenge!
00:23
Stokes Twins
Рет қаралды 80 МЛН
Муж внезапно вернулся домой @Oscar_elteacher
00:43
История одного вокалиста
Рет қаралды 5 МЛН
Perfect Pitch Challenge? Easy! 🎤😎| Free Fire Official
00:13
Garena Free Fire Global
Рет қаралды 97 МЛН
Create a Drag and Drop Puzzle/Sorting in React Native
22:04
Amit Khatkar - Untangle Code
Рет қаралды 7 М.
What's New in .NET 9 with Examples
25:02
Nick Chapsas
Рет қаралды 41 М.
The Most Important Design Pattern in React
35:04
Cosden Solutions
Рет қаралды 104 М.
How To Build Feature Flags Like A Senior Dev In 20 Minutes
20:33
Web Dev Simplified
Рет қаралды 93 М.
You Don’t Need JavaScript for That, by Kevin Powell
39:26
JetBrains
Рет қаралды 12 М.
A New Drag And Drop Library For EVERY Framework
16:02
Theo - t3․gg
Рет қаралды 168 М.
Windsurf Editor TUTORIAL // Better than Cursor? (yes)
21:42
codes with ai
Рет қаралды 7 М.