Setting a dangerouslySetInnerHTML attribute on the ShowMoreText component, it stops working correctly
hane-smitter opened this issue · comments
hane-smitter commented
wanting to render html on page, so setting th attribute "dangerouslySetInnerHTML", but doing this breaks the functionality
nandinipanchal001 commented
yes , facing the same issue
Bryce York commented
are you getting the error children.split is not a function
?
iraklimurusidze commented
@meetbryce I'm getting children.split is not a function
when I set keepNewLines
to true
and pass ReactNode as children instead of string
Bryce York commented
Yup, I'm getting the exact same error