JSFiddle - React, Tailwind, and code Playground
HTML
<textarea></textarea>
JavaScript
$('textarea').keypress(function() {
if($(this).val().length % 10 == 0) {
$(this).val($(this).val() + '\n');
}
});
<textarea></textarea>
$('textarea').keypress(function() {
if($(this).val().length % 10 == 0) {
$(this).val($(this).val() + '\n');
}
});