Skip to content

required propTypes #12

@flynfish

Description

@flynfish

Right now the defaultValue is required to be number or array. A string is perfectly valid when the id is not a number. Can you add the string as a valid value?

defaultValue: PropTypes.oneOfType([
      PropTypes.number,
      PropTypes.array,
      PropTypes.string,
    ])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions