Enjoying my videos? Sign up for FREE content here: https://www.thecoopercodes.com/
In this video I go over how to create a sortable list with dnd kit where we can move the items around. dnd kit is a great library for creating scalable, fast, and elegant drag and drop experiences. We use the useSortable hook in order to create elements which can be dragged and dropped throughout the list. React drag and drop can be tricky so hopefully this video gives you a great first start!
Enjoying my content? Feel free to support me on Patreon https://www.patreon.com/coopercodes
Business inquiry? Email thecoopercodes@gmail.com
0:00 Intro / Project Showcase
0:31 Setup React project
3:20 Setup dnd kit contexts and components
7:45 Create SortableItem.js
12:01 Bring SortableItems to App
13:33 Create handleDragEnd code
16:56 Final project / thank you :)