How to know the width of a table td after it has been created and populated using React/Pure Javascript?

I’d like to retrieve the width from a table after this has been created and populated with data.

I want to see how many words I can fit into the table data cell and then create a “show more”/”show less” button. But for this, I need to know the width of the column…

I’m using an external library so I can’t really manipulate the table, except providing the rows and columns.