Skip to content

Add React.PropTypes.any #842

Closed
Closed
@Twisol

Description

@Twisol

React.PropTypes.any should allow any value to be passed as a prop. Having it as a valid PropType would allow for React.PropTypes.any.isRequired, to enforce that something is passed, whatever it may be. It also supports documenting all possible props for a component: even if a prop may be anything, having it explicitly listed as React.PropType.any is useful documentation.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions