react-type-or-value-validator (npm): custom prop validator to accept a single value or a type.
Keywords: react|proptypes|proptype|validator|functional