JSFiddle - React, Tailwind, and code Playground

HTML

<div id="next_nav"></div>
<div id="nav"></div>

CSS

#next_nav{width:20px;height:20px;background-color:red}
#nav{width:300px;height:300px;background-color:yellow}

JavaScript

$(function() {
  $('#next_nav').click(function () {

$( "#nav" ).css('margin-left','-10px');
});
});