Currently the component only accepts text in string form, though sometimes the data is raw HTML which errors when passed. I get this error:
Warning: Failed prop type: Invalid prop `text` of type `object` supplied to `ReactTextMoreLess`, expected `string`.
in ReactTextMoreLess
The PropTypes for text should be object so we can pass HTML data as well
Currently the component only accepts
textin string form, though sometimes the data is raw HTML which errors when passed. I get this error:The PropTypes for
textshould beobjectso we can pass HTML data as well