Uploaded September 2024 | Updated November 2026, 3 hours ago
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn drag and drop in React with the example missing from most drag n drop tutorials. We'll use dndkit to build our own music playlist that lets users drag and drop songs to rearrange the order of the list.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Source Code Example: github.com/gitdagray/react-drag-n-drop
π Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Drag and Drop in React - the missing example
(00:00) Introduction
(00:18) Explore the Example App
(02:02) Install Dependencies
(03:05) dndkit
(03:30) Providing data for the app
(04:53) The Missing Example
(06:47) List component imports
(08:03) Next.js Hydration Mismatch fix
(09:38) 4 Key Functions for Drag n Drop
(14:20) List component return
(15:31) Sortable Row component
(18:00) Wrap-up
π Tutorial References:
π dndkit: docs.dndkit.com
Was this tutorial about Drag and Drop in React helpful? If so, please share. Let me know your thoughts in the comments.
#react #drag #drop
Web Dev Roadmap for Beginners (Free!): bit.ly/DaveGrayWebDevRoadmap
Learn drag and drop in React with the example missing from most drag n drop tutorials. We'll use dndkit to build our own music playlist that lets users drag and drop songs to rearrange the order of the list.
π Support me on Patreon β patreon.com/davegray
β Become a full-stack web dev with Zero To Mastery Courses:
- Complete Next.js Developer: bit.ly/CompNextJSDev
- Advanced React: bit.ly/AdvReactDev
- Junior to Senior Dev Roadmap: bit.ly/WebDevRoadmap-JrtoSr
π© Subscribe β bit.ly/3nGHmNn
π¬ Course Updates β https://courses.davegray.codes/
β Questions - Please post them to my Discord β discord.gg/neKghyefqh
β Buy Me A Coffee β buymeacoffee.com/davegray
π Source Code Example: github.com/gitdagray/react-drag-n-drop
π Follow Me On Social Media:
GitHub: github.com/gitdagray
Twitter: twitter.com/yesdavidgray
LinkedIn: linkedin.com/in/davidagray
Drag and Drop in React - the missing example
(00:00) Introduction
(00:18) Explore the Example App
(02:02) Install Dependencies
(03:05) dndkit
(03:30) Providing data for the app
(04:53) The Missing Example
(06:47) List component imports
(08:03) Next.js Hydration Mismatch fix
(09:38) 4 Key Functions for Drag n Drop
(14:20) List component return
(15:31) Sortable Row component
(18:00) Wrap-up
π Tutorial References:
π dndkit: docs.dndkit.com
Was this tutorial about Drag and Drop in React helpful? If so, please share. Let me know your thoughts in the comments.
#react #drag #drop










