react-string-truncate

truncate the text node of the specified child element that is pointed by the selector, and the ellipsis can be customized