JSFiddle - React, Tailwind, and code Playground
HTML
<ul id="list">
<li>This is an item.</li>
<li>This is another item.</li>
<li>This is yet another item.</li>
</ul>
JavaScript
var ul = document.getElementById("list");
for (var i = ul.children.length; i >= 0; i--)
ul.appendChild(ul.children[Math.random() * i | 0]);