on click move item top react

JavaScript
<ul>
  <li>one</li>
  <li>two</li>
  <li>three</li>
</ul>
Source

Also in JavaScript: