AI, Data Science & Cloud Certificates from Google, IBM & Meta
Learn Excel and Financial Modeling the Way Finance Teams Actually Use Them
Overview
Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This course shows how to add drag-and-drop ordering to a React Query todo list with react-beautiful-dnd. It also demonstrates preserving the reordered list through CRUD operations and page refreshes using intermediate state, useEffect, and localStorage.
Syllabus
Intro
Welcome
What We're Adding
Starter Code
Updating & Adding Dependencies
json-server
Starting the project
Initial DnD imports
DragDropContext
Bracket Pair Colorization
Droppable
Parent section
Assigning content
Mapping todos
Draggable
Droppable placeholder
React 18 Strict Mode issue & solution
Creating intermediate state
onDragEnd destination
Persisting DnD order with useEffect & localStorage
Update handleOnDragEnd
handleDelete
Testing CRUD Ops and refresh / reload
Taught by
Dave Gray