JSFiddle - React, Tailwind, and code Playground

HTML

<span class="limit">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book</span>

JavaScript

$(".limit").each(function (i) {
        var text = $(this).text();
        var len = text.length;

        if (len > 80) {
        	var query = text.split(" ", 10);
                query.push('...');
                res = query.join(' ');
            $(this).text(res);
        }
    });