JSFiddle - React, Tailwind, and code Playground

HTML

<table>
<tr>
<td>
   <span column="17" style="cursor:pointer"></span> BMW
</td>
</tr>  
</table>

JavaScript

$('span[column="17"]').get(0).nextSibling.nodeValue = 'Volvo';