Go ProSign in
Autoplay

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

    Alex ReardonAlex Reardon
    5:34

    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

    You must be a Member to view code