Тёмный

Build a beautiful, draggable kanban board with react-beautiful-dnd 

LogRocket
Подписаться 12 тыс.
Просмотров 95 тыс.
50% 1

Опубликовано:

 

20 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии    
@dangre00
@dangre00 4 года назад
Awesome, thanks so much! For anyone having trouble importing uuid, try importing this way: import { v4 as uuid } from 'uuid';
@negatif9163
@negatif9163 3 года назад
thansk. it doesnt work. this worked for me: "import uuid from 'react-uuid'; "
@noamhalamish3597
@noamhalamish3597 2 года назад
I had trouble with the uuid and your answer helped me solve it, thanks!
@daveclydesdale6514
@daveclydesdale6514 4 года назад
Thanks so much for making this fantastic video! I was struggling to get dnd working and this video has really helped me understand the process. My columns are now fully drag-and-droppable!
@alexanderauermaa7079
@alexanderauermaa7079 Год назад
I just had the best powernap listening to your voice, it's soothing - thanks!
@benherbert8682
@benherbert8682 Год назад
Thank you so much for this video. It's really helped me to start getting my head round react-beautiful-dnd. :)
@mrblanchett
@mrblanchett 3 года назад
Thank you so much for this guide! It's clear, straight to the point and easy to follow. Helped a lot 🙏
@travel_worldwide_365
@travel_worldwide_365 3 года назад
Wow! I was looking for this everywhere for the last 7 days and finally, You solved my issues. Thanks a lot, Man.
@VincentFulco
@VincentFulco 4 года назад
You guys really publish terrific blog posts and vids. Kudos!
@oghenevwefepeace2501
@oghenevwefepeace2501 2 года назад
Thank you very much for this video. Saved me a lot of time and stress.
@ricardo5460
@ricardo5460 9 месяцев назад
As others have mentioned if you get the "unable to find draggable" error just deactivate strict mode or use hello-pangea instead (uses reac beautiful dndb) that solve the issue for me. Hope it helps
@DanielClipsTVS
@DanielClipsTVS Год назад
you just saved my life. thank you so much
@Saradomin65
@Saradomin65 Год назад
If anyone is watching this and using Next.js and for some reason the package didn't work. It's entirely because of SSR with Next.js, in order to solve that you'd have to override the "DragDropContext", "Droppable", "Draggable" Example: import dynamic from 'next/dynamic' const DragDropContext = dynamic( async () => { const mod = await import('react-beautiful-dnd') return mod.DragDropContext }, { ssr: false } ) const Droppable = dynamic( async () => { const mod = await import('react-beautiful-dnd') return mod.Droppable }, { ssr: false } ) const Draggable = dynamic( async () => { const mod = await import('react-beautiful-dnd') return mod.Draggable }, { ssr: false } ) Now you use these components instead of importing from the package directly. I suggest you place those above in a separate file maybe in like a directory called "src/components/dragAndDrop/index.tsx" and export them.
@epherum7838
@epherum7838 Год назад
i love you man
@Leon510er
@Leon510er 10 месяцев назад
If you have the error: "Unable to find draggable with id:" remove "use client" or you can set the reactStrictmode to false. That works for me
@truongtmnt
@truongtmnt 3 года назад
thank you so much for making this video.
@alihusham1560
@alihusham1560 4 года назад
I watched tow different videos for and in both times I got undruggable object (it don't work for me)
@kalimuthu9540
@kalimuthu9540 3 года назад
Thank you so much. This is great video for beginners..😊
@koubinhanz
@koubinhanz 2 года назад
thank you for that video. Would it be possible to also make a video on combine feature?
@adylbekergeshov3262
@adylbekergeshov3262 3 года назад
Thank you so much, the video was very helpful
@onur-9158
@onur-9158 Год назад
when i gave style it start to behave not normal. how to solve this bug
@sabyasachirakshit9104
@sabyasachirakshit9104 Год назад
Your react error page looks like django. Is this related to react version?
@sanjayrawal2516
@sanjayrawal2516 Год назад
Thank you for this video
@roberto5692
@roberto5692 2 года назад
Thanks, this help me a lot 😁
@cleo0318
@cleo0318 3 года назад
I keep getting the following error: You are attempting to add or remove a Draggable [id: 828473d6-cbc1-4a13-a461-557b0ed59175]while a drag is occurring. This is only supported for virtual lists.
@ainneo
@ainneo 3 года назад
how can we make it save the users board? it keeps reverting back on page refresh or when we restart the app... nodata is saved
@khanfaysal993
@khanfaysal993 2 года назад
why used uuid npm in this project ?
@untepo
@untepo 3 года назад
Awesome, thank you so much! Its gonna take me three times more than you to do this but is great haha
@narekgrigoryan883
@narekgrigoryan883 4 года назад
Thanks a lot 👍
@koskoski66
@koskoski66 2 года назад
I have problems, it's showing me Unable to find draggable with id:. :/ , I followed the tutorial and copy and paste the code but the error is still showing me
@kumpalikumpa
@kumpalikumpa 2 года назад
just set the reactStrictmode to false
@akhileshpratapsingh8380
@akhileshpratapsingh8380 2 года назад
Thank you sir but how to implement virtualized
@wanthanatabniem7661
@wanthanatabniem7661 2 года назад
Thank you so much :)
@sreekumarmenon
@sreekumarmenon 2 года назад
thank you!
@codecret1
@codecret1 6 месяцев назад
is this responsive?
@Musica-zp7zn
@Musica-zp7zn Год назад
Nice, but could you kindly show us a new video showing this saving into firebase? 😅 Locally is so much easier but I'm more about a Trello clone which saves your card drags states to Firebase into their proper collections(or docs)..
@lerigogsadze5816
@lerigogsadze5816 3 года назад
Good job
@riturajanand93
@riturajanand93 3 года назад
Nice tutorial..How to implement useState after reload?
@LIMLIMLIM111
@LIMLIMLIM111 3 года назад
I guess we need to call fetch and update order index somehow. I am working on it rn.
@taranveerjohal175
@taranveerjohal175 2 года назад
@@LIMLIMLIM111 did you figure it out? I ma trying to fetch data from server and change the order and upload it back
@emreozgun3846
@emreozgun3846 2 года назад
@@taranveerjohal175 how did you handle server data and positioning ? do your lists/items have position to them ? I can think of sorting them by position while rendering but couldn't wrap my head around how to 'update the position and persist it on db' because If I change the position then every single item's position must also be updated.
@taranveerjohal175
@taranveerjohal175 2 года назад
@@emreozgun3846 I am using templates for positions in a mongodb atlas cluster table/collection . My list from API reference the templates and I can update the templates too
@taranveerjohal175
@taranveerjohal175 2 года назад
@@emreozgun3846 server data is handled in expressjs . Data from API is fetched here and sent to frontend for drag n drop logic.
@FrodosBeutel
@FrodosBeutel Год назад
Didn't work, i copied the code but couldn't drag and drop at the end
@Jason06245
@Jason06245 Год назад
did you know that this library is no longer maintained? it's now forked to @hello-pangea/dnd
@sunilnagulavancha658
@sunilnagulavancha658 4 года назад
Great Tutorial, it helps me to understand and implement the code. but how to implement autoscrolling feature in this project, pls reply ....
@codestudio497
@codestudio497 Год назад
draggableId so this one must be string not a number i have a set of data and now i have to convert every id to string
@anuppoudel3538
@anuppoudel3538 3 года назад
TypeError: prop_types__WEBPACK_IMPORTED_MODULE_4__.object.entries is not a function
@martinjagodnik1828
@martinjagodnik1828 3 года назад
Thank you very much!!
Далее
React-Leaflet demo
19:58
Просмотров 54 тыс.
Drag and Drop with react-beautiful-dnd
58:31
Просмотров 59 тыс.
Build a Kanban Board in React: A Step-by-Step Tutorial
40:17
Build React Drag N Drop With Dnd Kit
11:14
Просмотров 27 тыс.
Drag and Drop in React with React Beautiful DnD
5:51
Просмотров 176 тыс.
React Drag and Drop List Sort Tutorial
9:54
Просмотров 20 тыс.