I've created a React component (A) that displays some text. When the text exceeds the available space, I want to display a tooltip - another component with the full text. In my CSS file, I've defined that A has the text-overflow property set to "ellipsis".
This project is implemented using JavaScript (React) and Less.
I'm curious to know if there's a way to determine if ellipses are present (indicating text overflow), and based on that, dynamically render the additional component.