JSFiddle - React, Tailwind, and code Playground

by TJ VanToll

HTML

<link rel="stylesheet" href="http://code.jquery.com/ui/jquery-ui-git.css">
<script src="http://code.jquery.com/ui/jquery-ui-git.js"></script>
<!-- https://github.com/jquery/jquery-ui/pull/1171 -->
<!-- <script src="https://rawgithub.com/NiGhTTraX/jquery-ui/512a4e4c4839c7422fcd27feb4f8cd737a7893a7/ui/jquery.ui.sortable.js"></script> -->

<ul class="sortable">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>

<ul class="sortable">
    <li>Item 1</li>
    <li>Item 2</li>
    <li>Item 3</li>
</ul>

CSS

.sortable { list-style: none; padding: 0; }
.sortable li { border: 1px solid black; }

JavaScript

$( ".sortable" ).sortable({
    connectWith: ".sortable",
    remove: function( event, ui ) {
        console.log( ui.sender );
    }
});