JSFiddle - React, Tailwind, and code Playground

by jackdent

HTML

<input type="submit">

JavaScript

$('input:submit').click(function () {
     $(this).attr('disabled', true);
  });