JSFiddle - React, Tailwind, and code Playground
HTML
<p id="counter"></p>
<textarea id="text"></textarea>
JavaScript
jQuery( "#text" ).keyup( function(){
var numberOfChars = jQuery( "#text" ).val().length;
jQuery( "#counter" ).html( numberOfChars );
});