Persist List Reordering with react-beautiful-dnd using the onDragEnd Callback

Alex Reardon
InstructorAlex Reardon

Share this video with your friends

Send Tweet

In this lesson will demonstrate how you can persist changes locally that resulted from a drag and drop interaction.

To accomplish this, you will implement the onDragEnd callback function that is invoked at the end of every react-beautiful-dnd drag and drop. This function receives a result object. We will use the source and destination properties of the result object to update the order of our task list

Tony Catalfo
Tony Catalfo
~ 3 years ago

is there anyway to have passwords on individual components? I would like to have Admin passwords that can control all components and individual passwords to control specific components.