JSFiddle - React, Tailwind, and code Playground

HTML

<textarea></textarea>

<p></p>

CSS

textarea{
  width:300px;
  height:300px;
  font:12px tahoma;
}

JavaScript

$('textarea').on('change keyup keypress paste' , function() {

        var cs = $(this).val().length;
        $('p').text(cs);

});