JSFiddle - React, Tailwind, and code Playground

HTML

<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
  <div id="square">

  </div>

CSS

#square{
  width: 100px;
  height: 100px;
  background: red;
}
.highlight{
  border: 6px solid yellow
}

JavaScript

$(document).ready(function(){



setTimeout(function(){
     $('#square').addClass('highlight')
},6000);

setTimeout(function(){
     $('#square').removeClass('highlight');
},10000);

});