I have a sorted list in React that works from jQuery UI. When I drag an item in a list, I want to update the array so that the new list order is saved there. Then redeploy the page with the updated array. those. this.setState({data: _todoList});
Currently, when dragging and dropping a jQuery element, the DnD UI works, but the position of the element in the user interface does not change, even if the page re-displays with the updated array. that is, in the user interface, the element returns to the place where it was included in the list, although the array that determines its location was successfully updated.
If you double-drag an item, then move to the correct position.
source share