JSFiddle - React, Tailwind, and code Playground
by nslr
HTML
<textarea id="test"></textarea>
<p id="charsLeft"></p>
JavaScript
var maxLen = 160;
$('test').observe('keyup', function(evt){
$('charsLeft').update(maxLen - $('test').value.length);
});