JSFiddle - React, Tailwind, and code Playground

HTML

<input type="text" name="something" class="tab" />

JavaScript

$('.tab').mouseleave( function() {
   alert(this.name);
});