JSFiddle - React, Tailwind, and code Playground

by pleinx

HTML

<button>
  Add to Cart
</button>

JavaScript

$(document).ready(function() {
	$('button').on('click', function() {
  	$(this).prop('disabled', true);
  });
});