JSFiddle - React, Tailwind, and code Playground

HTML

<div id="append">append</div>

<textarea id="text"></textarea>

JavaScript

$(function(){
	$(document).on('click', '#append', function(){
    $('#text').val( $('#text').val() + " X") ;
  });
});