How to elegantly identify whether a text-truncate has occurred in React? - Kevin Powell - Community