JSFiddle - React, Tailwind, and code Playground
HTML
<html>
<head>
<link rel=stylesheet type=text/css href="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/themes/start/jquery-ui.css">
<script src="//ajax.googleapis.com/ajax/libs/jqueryui/1.8.23/jquery-ui.min.js"></script>
</head>
<body>
<button>b1</button>
</body>
</html>
CSS
button {position:absolute; left:0, top:0;}
JavaScript
$(function(){ // when dom ready
var flag=true;
$("button").button().click(function(e){
if (flag) $(e.target).css("left","50px");
else $(e.target).css("left","0px");
flag=!flag;
});
});