JSFiddle - React, Tailwind, and code Playground
HTML
<textarea>
this is some content
</textarea>
<button>Click</button>
JavaScript
$('button').click(function () {
alert('html:\r\n' + $('textarea').html());
alert('val:\r\n' + $('textarea').val());
alert('textContent\r\n' + document.getElementsByTagname('textarea')[0].textContent);
});