Skip to content
This repository was archived by the owner on May 5, 2020. It is now read-only.
This repository was archived by the owner on May 5, 2020. It is now read-only.

Add Enum Type #3

@killercup

Description

@killercup

While it's possible to validate string enums using the regex type, a more comfortable solution should be available.

Alert = React.createClass
  propTypes:
    type: ReactProps.require(type: 'enum', options: ['info', 'warning', 'success', 'danger'])

(I initially noticed this after reading .)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions