JSFiddle - React, Tailwind, and code Playground
by octavient
HTML
<div id="tabs">
<ul>
<li><a href="http://fiddle.jshell.net/qfxsc/1/show/">first tab</a></li>
<li><a href="http://fiddle.jshell.net/qfxsc/1/show/">second tab</a></li>
</ul>
</div>
JavaScript
$(document).ready(function(){
$("#tabs").tabs({
load:function(event,ui) {
console.log('hi there');
console.log(ui.tab.index());
}
});
});