JSFiddle - React, Tailwind, and code Playground
HTML
<textarea>
</textarea>
JavaScript
var words = []
$('textarea').on('blur', function(){
words = $(this).val().match(/\w+/g)
alert(words)
})
<textarea>
</textarea>
var words = []
$('textarea').on('blur', function(){
words = $(this).val().match(/\w+/g)
alert(words)
})