JSFiddle - React, Tailwind, and code Playground

HTML

<ul class="sortable list-striped">
    <li>List item 1</li>
    <li>List item 2</li>
    <li>List item 3</li>
    <li>List item 4</li>
</ul>

CSS

.list-striped li{
  width:200px;
  border:1px solid #ccc;
  padding:10px;
  transition: background 0.2s linear;
  -o-transition: background 0.2s linear;
  -moz-transition: background 0.2s linear;
  -webkit-transition: background 0.2s linear;
   cursor:pointer;
}
.list-striped li:nth-child(odd) {
  background-color: #faa;
}

.list-striped li.ui-sortable-helper{
  background-color:#a55 !important;
}

JavaScript

$(function(){
    $( ".sortable" ).sortable();
});