JSFiddle - React, Tailwind, and code Playground
HTML
<button id="btnSave" type="submit" form="form1" onclick="changeButtonText(this)">SAUVEGARDER</button>
JavaScript
function changeButtonText(obj) {
obj.innerHTML = "SAVED !";
obj.disabled = true;
}