I have a react component (A) that renders some text. If the text overflows, I'd like to show tooltip - another component with full text. In css file, I set that A has text-overflow property set as "ellipsis".
Using JS (react) and less.
I would like to know if there is a possibility to find out if there are ellipses (the text overflows) and according to that just render also the other component.