JSFiddle - React, Tailwind, and code Playground

HTML

<div class="divone"></div>

CSS

.divone {
	background-color: #09F;
	float: left;
	height: 100px;
	width: 200px;
	margin-left: 50px;
}

JavaScript

$(document).ready(function(e) {


$('.divone').toggle(function() {
    $(this).text("click one");
}, function() {
  $(this).text("click two");
});
	

});