JSFiddle - React, Tailwind, and code Playground
HTML
<script type="text/javascript"> function handleInput(ev) { alert(ev.target.value); } window.onload = function() { document.getElementById('myTextArea').addEventListener('input',handleInput,false); } </script> <textarea id="myTextArea">Edit this text.</textarea>