JSFiddle - React, Tailwind, and code Playground
HTML
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
<button id="button">ChangeLastWord</button>
<div id="tableWrapper">
<table id="myTable" class="fit">
<tr>
<td>some</td>
<td>nice</td>
<td>word</td>
<td>word</td>
</tr>
<tr>
<td>some</td>
<td>nice</td>
<td>word</td>
<td>word</td>
</tr>
</table>
</div>
CSS
table {
width: 100%;
}
td {
max-width: 0;
overflow: hidden;
white-space: nowrap;
}
td {
width: 25%;
}
JavaScript
$('#button').click(ChagneLastWord);
function ChagneLastWord() {
var lastCell = $("#myTable tr").first().find("td").first();
lastCell.text("loooooooooooooooooooooooooooooooooooooooooooooooong word");
}