PropTypes

PropTypes

Source:

PropTypes - React Component PropTypes methods for validating Tags

Methods

(static) arrayOfTags(props, propName) → {Error|undefined}

React Component PropTypes validator for an array of Tags

Source:
Parameters:
Name Type Description
props Object

An object containing all props passed into the component

propName String

Name of prop to validate

Returns:

returns an error if validation us unseccessful

Type
Error | undefined

(static) Tag(props, propName) → {Error|undefined}

React Component PropTypes validator for a single Tag

Source:
Parameters:
Name Type Description
props Object

An object containing all props passed into the component

propName String

Name of prop to validate

Returns:

returns an error if validation us unseccessful

Type
Error | undefined