JSFiddle - React, Tailwind, and code Playground

HTML

<div>
  <textarea class="test"></textarea>
</div>

JavaScript

(function(){
  $("div").on('click', 'test', function(){
    //expand textarea
    $(this).css('height', '50px');
  });
})();