react-truncate
react-truncate copied to clipboard
add `renderLastLine` method to overriding if it need
I use this component to truncating a text, and I need to use react-linkify
inside. I can override renderLine for this goals, but I noticed that last line rendered with broken link, because of slicing text.
@thykos does the change with renderLastLine
actually make any functional difference?
@thykos does the change with
renderLastLine
actually make any functional difference?
yes, if we use linkify and last line include link, link will be cutted and broken. With renredLastLine
we can prevent broke