JSFiddle - React, Tailwind, and code Playground

by kiokotzu

HTML

<button>hola</button>
<button>esteban</button>

JavaScript

var texto = '';
$(document).ready(function(){
    $('button').hover(function() {
      texto = $(this).text();
     $(this).text('Registrese');
    }, function() {
       $(this).text(texto);
    }); 
});