JSFiddle - React, Tailwind, and code Playground
HTML
<textarea id="g-text"></textarea>
JavaScript
$(document).ready(function () {
$('#g-text').keyup(function() {
var $th = $(this);
$th.val( $th.val().replace('a href', function(str) { alert('You typed " ' + str + ' ".\n\nPlease do not use that.'); return ''; } ) );
});
});