Skip to content

Add support for dangerouslySetInnerHTML #2

Description

@nupurkapoor

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions