JSFiddle - React, Tailwind, and code Playground

HTML

<input id="plus" type="button" value="+=1.0">
<input id="minus" type="button" value="-=1.0">
<div id="box"></div>

CSS

#box {
  width: 200px;
  height: 200px; 
  background:red;
}

JavaScript

$('#plus').click(function(){
  $('#box').css('margin-left','+=1');  
  console.log($('#box')[0].style.marginLeft);
})
$('#minus').click(function(){
  $('#box').css('margin-left','+=-1');
  console.log($('#box')[0].style.marginLeft);
})