JSFiddle - React, Tailwind, and code Playground

by gdoron

HTML

<textarea id="EventNature"></textarea>

JavaScript

$('#EventNature').keypress(function(){
    if (this.value.length >= 10)
    return false;        
});